-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapting command to accept R8 and updating template to be more mainta…
…inable (#1931)
- Loading branch information
1 parent
4e86b2e
commit 50949b6
Showing
5 changed files
with
53 additions
and
12 deletions.
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 |
---|---|---|
@@ -1,18 +1,25 @@ | ||
Value VLAN_ID (\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_STATE (on|off) | ||
Value MBLETAG (on|off) | ||
Value SOURCE_LEARN (on|off) | ||
Value VLAN_NAME ((\S+\s*)+\S+) | ||
Value TYPE (\S+) | ||
Value ADMIN_STATE (\S+) | ||
Value OPERATIONAL_STATE (\S+) | ||
Value SPANNING_TREE_1X1 (\S+) | ||
Value SPANNING_TREE_FLAT (\S+) | ||
Value AUTH (\S+) | ||
Value IP_STATE (\S+) | ||
Value MBLETAG (\S+) | ||
Value SOURCE_LEARN (\S+) | ||
Value MTU (\d+) | ||
Value VLAN_NAME (\S.+\S) | ||
|
||
Start | ||
^\s*${VLAN_ID}\s+${TYPE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${SPANNING_TREE_1X1}\s+${SPANNING_TREE_FLAT}\s+${AUTH}\s+${IP_STATE}\s+${MBLETAG}\s+${SOURCE_LEARN}\s+${VLAN_NAME}\s*$$ -> Record | ||
# R6 Version | ||
^\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*$$ | ||
^-----\+-----\+------\+------\+------\+------\+----\+-----\+-----\+------\+---------- | ||
# R8 Version | ||
^\s*vlan\s+type\s+admin\s+oper\s+ip\s+mtu\s+name\s*$$ | ||
^\s*-+ | ||
# R6 | ||
^\s*${VLAN_ID}\s+${TYPE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${SPANNING_TREE_1X1}\s+${SPANNING_TREE_FLAT}\s+${AUTH}\s+${IP_STATE}\s+${MBLETAG}\s+${SOURCE_LEARN}\s+${VLAN_NAME}\s*$$ -> Record | ||
# R8 | ||
^\s*${VLAN_ID}\s+${TYPE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${IP_STATE}\s+${MTU}\s+${VLAN_NAME}\s*$$ -> Record | ||
^.*$$ -> Error |
File renamed without changes.
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,4 @@ | ||
vlan type admin oper ip mtu name | ||
------+-------+-------+------+------+------+------------------ | ||
1 std Dis Dis Dis 1500 Vlan_1 | ||
4094 vcm Ena Dis Dis 1500 VCM IPC |
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,26 @@ | ||
--- | ||
parsed_sample: | ||
- admin_state: "Dis" | ||
auth: "" | ||
ip_state: "Dis" | ||
mbletag: "" | ||
mtu: "1500" | ||
operational_state: "Dis" | ||
source_learn: "" | ||
spanning_tree_1x1: "" | ||
spanning_tree_flat: "" | ||
type: "std" | ||
vlan_id: "1" | ||
vlan_name: "Vlan_1" | ||
- admin_state: "Ena" | ||
auth: "" | ||
ip_state: "Dis" | ||
mbletag: "" | ||
mtu: "1500" | ||
operational_state: "Dis" | ||
source_learn: "" | ||
spanning_tree_1x1: "" | ||
spanning_tree_flat: "" | ||
type: "vcm" | ||
vlan_id: "4094" | ||
vlan_name: "VCM IPC" |