diff options
author | Lexi Winter <ivy@FreeBSD.org> | 2025-08-05 18:27:09 +0000 |
---|---|---|
committer | Lexi Winter <ivy@FreeBSD.org> | 2025-08-05 19:25:37 +0000 |
commit | c41469a89f74e921ccbab09074c7b24edacbcc85 (patch) | |
tree | 5a1dbeb5c19958addce1384108e7bdda1ebf5f63 /contrib/opencsd | |
parent | 7d99569d40510b627f0790c2b9630b5903e926b9 (diff) |
The current syntax to add an interface to a filtering bridge requires
repeating the interface name up to three times:
ifconfig bridge0 addm ix0 untagged ix0 10 tagged ix0 100-199
Since at least one of these options nearly always needs to be set,
this results in excessively verbose configuration.
Extend "addm" to support optional arguments, and add two arguments,
"untagged" and "tagged", which infer the interface name from the
addm command. Now the interface only has to be given once:
ifconfig bridge0 addm ix0 untagged 10 tagged 100-199
To avoid confusion with the existing untagged and tagged commands,
rename those to ifuntagged and iftagged.
In future, this syntax will make it possible to add an interface and
set its vlan configuration atomically (once the API supports that),
but switching to the new syntax now means we don't need to change it
after 15.0.
Differential Revision: https://reviews.freebsd.org/D51707
Diffstat (limited to 'contrib/opencsd')
0 files changed, 0 insertions, 0 deletions