-
Notifications
You must be signed in to change notification settings - Fork 735
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_byvlan_0 (…
- Loading branch information
1 parent
7e7edbd
commit 9a6d6c5
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/huawei_smartax_display_ont_port_vlan_0_1_byvlan_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,16 @@ | ||
Value C_VLAN (\d+) | ||
Value C_PRI (\d+) | ||
Value ETH_TYPE (\S+) | ||
Value VLAN_TYPE (\S+) | ||
Value PORT_TYPE (\S+) | ||
Value PORT_ID (\d+) | ||
Value S_VLAN (\d+) | ||
Value S_PRI (\d+) | ||
Value S_PRI_POLICY (\S+) | ||
|
||
Start | ||
^\s*C-VLAN\s*C-PRI\s*ETH-type\s*VLAN-type\s*Port\s*Port\s*S-VLAN\s*S-PRI\s* | ||
^\s*type\s*ID\s*POLICY | ||
^\s+${C_VLAN}\s+(-|${C_PRI})\s+${ETH_TYPE}\s+${VLAN_TYPE}\s+${PORT_TYPE}\s+${PORT_ID}\s+${S_VLAN}\s+(-|${S_PRI})\s*(-|${S_PRI_POLICY})\s* -> Record | ||
^\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
10 changes: 10 additions & 0 deletions
10
.../display_ont_port_vlan_0_1_byvlan_0/huawei_smartax_display_ont_port_vlan_0_1_byvlan_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,10 @@ | ||
-------------------------------------------------------------------- | ||
C-VLAN C-PRI ETH-type VLAN-type Port Port S-VLAN S-PRI S-PRI | ||
type ID POLICY | ||
-------------------------------------------------------------------- | ||
100 - IPoE QINQ ETH 2 20 3 DSCP | ||
100 - 0x6321 QINQ ETH 4 70 - - | ||
-------------------------------------------------------------------- | ||
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 |
20 changes: 20 additions & 0 deletions
20
.../display_ont_port_vlan_0_1_byvlan_0/huawei_smartax_display_ont_port_vlan_0_1_byvlan_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,20 @@ | ||
--- | ||
parsed_sample: | ||
- c_pri: "" | ||
c_vlan: "100" | ||
eth_type: "IPoE" | ||
port_id: "2" | ||
port_type: "ETH" | ||
s_pri: "3" | ||
s_pri_policy: "DSCP" | ||
s_vlan: "20" | ||
vlan_type: "QINQ" | ||
- c_pri: "" | ||
c_vlan: "100" | ||
eth_type: "0x6321" | ||
port_id: "4" | ||
port_type: "ETH" | ||
s_pri: "" | ||
s_pri_policy: "" | ||
s_vlan: "70" | ||
vlan_type: "QINQ" |