-
Notifications
You must be signed in to change notification settings - Fork 559
NAS-139477 / 27.0.0-BETA.1 / Add FEC mode configuration to network interfaces #18447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+214
−4
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
67ffecc
begin
creatorcary d168883
draft
creatorcary 487333c
touch up
creatorcary cb2cfcb
remove unnecessary get_instance call
creatorcary cc9f213
Merge branch 'master' of https://github.com/truenas/middleware into N…
creatorcary 64aa0b4
Merge branch 'master' of https://github.com/truenas/middleware into N…
creatorcary 0cff755
27 api
creatorcary b91c4e4
update migration
creatorcary eb7a4a6
clarify state field
creatorcary 856d858
Merge branch 'master' of https://github.com/truenas/middleware into N…
creatorcary 9d9fd76
merge migration
creatorcary 2e0373f
make available_fec_modes synchronous
creatorcary 108b783
rename migration
creatorcary bccdbfe
only allow changing fec_mode on enterprise systems
creatorcary 1cc0bf5
Merge branch 'master' of https://github.com/truenas/middleware into N…
creatorcary 4c9604d
update merge migration
creatorcary 11ca975
API doc
creatorcary 96c3c11
appease import linter
creatorcary 07cb0b0
use FecModeName alias consistently
creatorcary a1c12dc
address reviews
creatorcary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/middlewared/middlewared/alembic/versions/26.0/2026-03-11_18-44_add_interface_fec_mode.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| """Add FEC mode to network interfaces. | ||
| Revision ID: ad6bd79a37d7 | ||
| Revises: f3b4b0f4b0cf | ||
| Create Date: 2026-02-17 16:20:00.000000+00:00 | ||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = 'ad6bd79a37d7' | ||
| down_revision = 'f3b4b0f4b0cf' | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| with op.batch_alter_table('network_interfaces', schema=None) as batch_op: | ||
| batch_op.add_column(sa.Column('int_fec_mode', sa.String(length=10), nullable=True)) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| with op.batch_alter_table('network_interfaces', schema=None) as batch_op: | ||
| batch_op.drop_column('int_fec_mode') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.