-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALCATEL AOS SHOW VLAN: Add new template (#345)
- Loading branch information
1 parent
fd1c62c
commit 722f30f
Showing
5 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,18 @@ | ||
Value VLAN (\d+) | ||
Value TYPE (std|vstk|gvrp|ipmv) | ||
Value ADMIN_STATE (on|off) | ||
Value OPERATIONAL_STATE (on|off) | ||
Value SPANNING_TREE_1X1 (on|off) | ||
Value SPANNING_TREE_FLAT (on|off) | ||
Value AUTH (on|off) | ||
Value IP (on|off) | ||
Value MBLETAG (on|off) | ||
Value SOURCE_LEARN (on|off) | ||
Value NAME ((\S+\s*)+\S+) | ||
|
||
Start | ||
^\s*${VLAN}\s+${TYPE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${SPANNING_TREE_1X1}\s+${SPANNING_TREE_FLAT}\s+${AUTH}\s+${IP}\s+${MBLETAG}\s+${SOURCE_LEARN}\s+${NAME}\s*$$ -> Record | ||
^\s*stree\s+mble\s+src\s*$$ | ||
^\s*vlan\s+type\s+admin\s+oper\s+1x1\s+flat\s+auth\s+ip\s+tag\s+lrn\s+name\s*$$ | ||
^-----\+-----\+------\+------\+------\+------\+----\+-----\+-----\+------\+---------- | ||
^.*$$ -> Error |
This file contains 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 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,49 @@ | ||
--- | ||
parsed_sample: | ||
- admin_state: 'on' | ||
auth: 'off' | ||
ip: 'off' | ||
mbletag: 'off' | ||
name: 'VLAN 1' | ||
operational_state: 'on' | ||
source_learn: 'on' | ||
spanning_tree_1x1: 'on' | ||
spanning_tree_flat: 'on' | ||
type: 'std' | ||
vlan: '1' | ||
|
||
- admin_state: 'on' | ||
auth: 'off' | ||
ip: 'off' | ||
mbletag: 'off' | ||
name: 'name with spaces' | ||
operational_state: 'off' | ||
source_learn: 'on' | ||
spanning_tree_1x1: 'on' | ||
spanning_tree_flat: 'on' | ||
type: 'std' | ||
vlan: '10' | ||
|
||
- admin_state: 'on' | ||
auth: 'off' | ||
ip: 'on' | ||
mbletag: 'off' | ||
name: 'name-with-dashes' | ||
operational_state: 'on' | ||
source_learn: 'on' | ||
spanning_tree_1x1: 'on' | ||
spanning_tree_flat: 'on' | ||
type: 'std' | ||
vlan: '100' | ||
|
||
- admin_state: 'on' | ||
auth: 'off' | ||
ip: 'on' | ||
mbletag: 'off' | ||
name: 'namewithoutnothing' | ||
operational_state: 'on' | ||
source_learn: 'on' | ||
spanning_tree_1x1: 'on' | ||
spanning_tree_flat: 'on' | ||
type: 'gvrp' | ||
vlan: '1000' |
This file contains 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,7 @@ | ||
stree mble src | ||
vlan type admin oper 1x1 flat auth ip tag lrn name | ||
-----+-----+------+------+------+------+----+-----+-----+------+---------- | ||
1 std on on on on off off off on VLAN 1 | ||
10 std on off on on off off off on name with spaces | ||
100 std on on on on off on off on name-with-dashes | ||
1000 gvrp on on on on off on off on namewithoutnothing |
This file contains 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