diff options
author | jack9603301 <jack9603301@163.com> | 2020-11-10 12:24:31 +0800 |
---|---|---|
committer | jack9603301 <jack9603301@163.com> | 2020-11-10 12:24:49 +0800 |
commit | 3466941316a70ac840ebdcc7576230158be8a0fb (patch) | |
tree | 73a00197f3a37d729e17e5446db0e5ebbc14ac31 /interface-definitions/interfaces-bridge.xml.in | |
parent | ad856600ca29ba463de2b288189d3f40b9e91846 (diff) | |
download | vyos-1x-3466941316a70ac840ebdcc7576230158be8a0fb.tar.gz vyos-1x-3466941316a70ac840ebdcc7576230158be8a0fb.zip |
bridge: T3042: Support VLAN filter and VLAN sub-interface on the bridge
Diffstat (limited to 'interface-definitions/interfaces-bridge.xml.in')
-rw-r--r-- | interface-definitions/interfaces-bridge.xml.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-bridge.xml.in b/interface-definitions/interfaces-bridge.xml.in index ccd6db9e4..97f548252 100644 --- a/interface-definitions/interfaces-bridge.xml.in +++ b/interface-definitions/interfaces-bridge.xml.in @@ -111,6 +111,37 @@ </completionHelp> </properties> <children> + <leafNode name="native-vlan"> + <properties> + <help>Set the specific VLAN ID in the interface to ACCESS mode</help> + <valueHelp> + <format>1-4094</format> + <description>Virtual Local Area Network (VLAN) ID</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-4094"/> + </constraint> + <constraintErrorMessage>VLAN ID must be between 1 and 4094</constraintErrorMessage> + </properties> + </leafNode> + <leafNode name="allowed-vlan"> + <properties> + <help>Allow the bridge to pass the tagged VLAN tag on this interface</help> + <valueHelp> + <format><n></format> + <description>Virtual Local Area Network (VLAN) ID</description> + </valueHelp> + <valueHelp> + <format><n-m>-<1-4096></format> + <description>Virtual Local Area Network (VLAN) ID Range</description> + </valueHelp> + <constraint> + <regex>^([0-9]{1,4}-[0-9]{1,4})|([0-9]{1,4})$</regex> + </constraint> + <constraintErrorMessage>not a valid VLAN ID value or range</constraintErrorMessage> + <multi/> + </properties> + </leafNode> <leafNode name="cost"> <properties> <help>Bridge port cost</help> @@ -163,6 +194,8 @@ <valueless/> </properties> </leafNode> + #include <include/vif-s.xml.i> + #include <include/vif.xml.i> </children> </tagNode> </children> |