Repository navigation
[Nexthop][fboss2-dev] Add a "fboss2 config interface <name> description <desc>" command. - #760
Closed
benoit-nexthop wants to merge 1 commit into
Closed
benoit-nexthop wants to merge 1 commit into
benoit-nexthop wants to merge 1 commit into
Conversation
benoit-nexthop
marked this pull request as ready for review
December 18, 2025 00:38
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
2 times, most recently
from
December 23, 2025 21:39
8759fa4 to
b4b36a3
Compare
This was referenced Dec 23, 2025
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
5 times, most recently
from
December 30, 2025 15:53
321f876 to
95c2d20
Compare
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
3 times, most recently
from
January 7, 2026 06:29
cf2e397 to
5ee5d93
Compare
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
5 times, most recently
from
January 15, 2026 21:36
323ea6e to
0724b1a
Compare
meta-codesync Bot
pushed a commit
that referenced
this pull request
Jan 16, 2026
Summary: **Pre-submission checklist** - [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install` - [x] `pre-commit run` This adds just the command `fboss2 config history`. Note: this change is part of a series, the previous one is #758, the next one is #760. Pull Request resolved: #759 Test Plan: Unit tests. ## Sample usage ``` [admin@fboss101 benoit]$ ./fboss2-dev config history Revision Owner Commit Time ------------------------------------------ r1 root 2025-11-05 13:26:58 r2 root 2025-11-05 13:27:35 r3 root 2025-11-05 13:28:13 r4 admin 2025-11-05 14:37:51 r5 admin 2025-11-05 14:38:31 ``` Differential Revision: D90801711 Pulled By: joseph5wu fbshipit-source-id: b404a043258c4bb74cbbf658ee0055c6d8e7d84f
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
2 times, most recently
from
January 20, 2026 18:37
e5a9489 to
40e4f69
Compare
2 tasks done
Contributor
|
@joseph5wu has imported this pull request. If you are a Meta employee, you can view this in D91058688. |
joseph5wu
requested changes
Jan 20, 2026
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
from
January 20, 2026 23:05
40e4f69 to
9835ee1
Compare
Contributor
|
@benoit-nexthop has updated the pull request. You must reimport the pull request before landing. |
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
from
January 21, 2026 01:09
9835ee1 to
013280c
Compare
Contributor
|
@benoit-nexthop has updated the pull request. You must reimport the pull request before landing. |
Add some helper code to process interface-list arguments.
benoit-nexthop
force-pushed
the
fboss2-cli-prototype_part08
branch
from
January 21, 2026 18:02
013280c to
beeefbb
Compare
Contributor
|
@benoit-nexthop has updated the pull request. You must reimport the pull request before landing. |
Contributor
|
@joseph5wu merged this pull request in 4cf8d36. |
meta-codesync Bot
pushed a commit
that referenced
this pull request
Jan 22, 2026
Summary: **Pre-submission checklist** - [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install` - [x] `pre-commit run` This command allows setting the MTU on the given interface. Note: this change is part of a series, the previous one is #760, the next one is #783. Pull Request resolved: #761 Test Plan: Unit tests. New end to end tests for this command are in #783. ## Sample usage ``` [admin@fboss101 benoit]$ ./fboss2-dev show interface | head +-----------+--------+-------+------+------+------------------------------+----------------------------+ | Interface | Status | Speed | VLAN | MTU | Addresses | Description | -------------------------------------------------------------------------------------------------------- | eth1/1/1 | down | 800G | 2001 | 1500 | 10.0.0.0/24 | Test port for diff command | | | | | | | 2400::/64 | | | | | | | | fe80::b4db:91ff:fe95:ff07/64 | | +-----------+--------+-------+------+------+------------------------------+----------------------------+ | eth1/2/1 | down | 200G | 2003 | 9216 | 11.0.0.0/24 | Another test description | | | | | | | 2401::/64 | | | | | | | | fe80::b4db:91ff:fe95:ff07/64 | | [admin@fboss101 benoit]$ ./fboss2-dev config interface eth1/1/1 mtu 9000 Successfully set MTU for interface(s) eth1/1/1 to 9000 [admin@fboss101 benoit]$ ./fboss2-dev config session diff --- /etc/coop/agent.conf 2025-11-05 12:49:14.497415902 -0800 +++ /home/admin/.fboss2/agent.conf 2025-11-05 12:57:27.123758309 -0800 @@ -369,7 +369,7 @@ ], "isStateSyncDisabled": true, "isVirtual": false, - "mtu": 1500, + "mtu": 9000, "routerID": 0, "scope": 0, "type": 1, [admin@fboss101 benoit]$ ./fboss2-dev config session commit Config session committed successfully and config reloaded. [admin@fboss101 benoit]$ ./fboss2-dev show interface | head +-----------+--------+-------+------+------+------------------------------+----------------------------+ | Interface | Status | Speed | VLAN | MTU | Addresses | Description | -------------------------------------------------------------------------------------------------------- | eth1/1/1 | down | 800G | 2001 | 9000 | 10.0.0.0/24 | Test port for diff command | | | | | | | 2400::/64 | | | | | | | | fe80::b4db:91ff:fe95:ff07/64 | | +-----------+--------+-------+------+------+------------------------------+----------------------------+ | eth1/2/1 | down | 200G | 2003 | 9216 | 11.0.0.0/24 | Another test description | | | | | | | 2401::/64 | | | | | | | | fe80::b4db:91ff:fe95:ff07/64 | | ``` Reviewed By: srikrishnagopu Differential Revision: D91169265 Pulled By: joseph5wu fbshipit-source-id: 9e77aded8dc19c1fb6b8ce157a2cd14eb73beceb
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
Add some helper code to process interface-list arguments.
Note: this change is part of a series, the previous one is #759, the next one is #761.
Test Plan
Unit tests. New end to end tests for this command are in #783.
Sample usage
Changing two interfaces (or more) at the same time:
Referencing an interface that doesn't exist:
Nothing changes when mixing valid and nonexistent interface names: