-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added template for Huawei SmartAX: display_ont_port_vlan_0_1_byport_e…
…th_0 (#1796)
- Loading branch information
1 parent
e4491e2
commit 9dc7f14
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ntc_templates/templates/huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.textfsm
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 @@ | ||
Value PORT_ID (\d+) | ||
Value PORT_TYPE (\S+) | ||
Value C_VLAN (\d+) | ||
Value C_PRI (\d+) | ||
Value ETH_TYPE (\S+) | ||
Value VLAN_TYPE (\S+) | ||
Value S_VLAN (\d+) | ||
Value S_PRI (\d+) | ||
Value S_PRI_POLICY (\S+) | ||
Value Fillup NATIVE_VLAN (\d+) | ||
Value Fillup DEFAULT_PRIORITY (\d+) | ||
Value Fillup DOWNSTREAM_MODE (\S+) | ||
Value Fillup MISMATCH_POLICY (\S+) | ||
|
||
Start | ||
^\s*Port\s*Port\s*C-VLAN\s*C-PRI\s*ETH-type\s*VLAN-type\s*S-VLAN\s*S-PRI\s*S-PRI\s* | ||
^\s*type\s*ID\s*POLICY | ||
^\s+${PORT_TYPE}\s+${PORT_ID}\s+(-|${C_VLAN})\s+(-|${C_PRI})\s+(-|${ETH_TYPE})\s+(-|${VLAN_TYPE})\s+(-|${S_VLAN})\s*(-|${S_PRI})\s*(-|${S_PRI_POLICY})\s* -> Record | ||
^\s*Native\s*VLAN\s*:\s*${NATIVE_VLAN}\s* | ||
^\s*Default\s*priority\s*:\s*${DEFAULT_PRIORITY}\s* | ||
^\s*Downstream\s*mode\s*:\s*${DOWNSTREAM_MODE}\s* | ||
^\s*Mismatch\s*policy\s*:\s*${MISMATCH_POLICY}\s* | ||
^\s* | ||
^. -> Error | ||
|
||
EOF |
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
15 changes: 15 additions & 0 deletions
15
..._ont_port_vlan_0_1_byport_eth_0/huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.raw
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,15 @@ | ||
-------------------------------------------------------------------- | ||
Port Port C-VLAN C-PRI ETH-type VLAN-type S-VLAN S-PRI S-PRI | ||
type ID POLICY | ||
-------------------------------------------------------------------- | ||
eth 1 - 2 - Translation 1 7 - | ||
eth 2 - 2 - Translation 1 7 - | ||
-------------------------------------------------------------------- | ||
Native VLAN : 1 | ||
Default priority: 0 | ||
Downstream mode : operation | ||
Mismatch policy : discard | ||
-------------------------------------------------------------------- | ||
Notes: IPoE indicates IPv4-IPoE, * indicates transparent attribute of | ||
the vlan, In the Ethernet encapsulation list, the hexadecimal digits | ||
indicate the user-defined Ethernet encapsulation type |
28 changes: 28 additions & 0 deletions
28
..._ont_port_vlan_0_1_byport_eth_0/huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.yml
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,28 @@ | ||
--- | ||
parsed_sample: | ||
- c_pri: "2" | ||
c_vlan: "" | ||
default_priority: "0" | ||
downstream_mode: "operation" | ||
eth_type: "" | ||
mismatch_policy: "discard" | ||
native_vlan: "1" | ||
port_id: "1" | ||
port_type: "eth" | ||
s_pri: "7" | ||
s_pri_policy: "" | ||
s_vlan: "1" | ||
vlan_type: "Translation" | ||
- c_pri: "2" | ||
c_vlan: "" | ||
default_priority: "0" | ||
downstream_mode: "operation" | ||
eth_type: "" | ||
mismatch_policy: "discard" | ||
native_vlan: "1" | ||
port_id: "2" | ||
port_type: "eth" | ||
s_pri: "7" | ||
s_pri_policy: "" | ||
s_vlan: "1" | ||
vlan_type: "Translation" |