Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added template for Huawei SmartAX: display_ont_port_vlan_0_1_byvlan_0 #1795

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ hp_procurve_show_ip.textfsm, .*, hp_procurve, sh[[ow]] ip

huawei_smartax_display_ont_info_summary_ont.textfsm:huawei_smartax_display_ont_info_summary_sn.textfsm, .*, huawei_smartax, di[[splay]] ont i[[nfo]] su[[mmary]] \S+ *$
huawei_smartax_display_ont_info_0_1_2.textfsm:huawei_smartax_display_ont_info_description.textfsm, .*, huawei_smartax, di[[splay]] ont i[[nfo]] (\d+\s*|\d+ \d+ \d+\s*) *$
huawei_smartax_display_ont_port_vlan_0_1_byvlan_0.textfsm, .*, huawei_smartax, di[[splay]] ont p[[ort]] v[[lan]] \d+ \d+ byvlan \d+
huawei_smartax_display_ont_optical-info_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont o[[ptical-info]] \d+ all
huawei_smartax_display_sysman_service_state.textfsm, .*, huawei_smartax, di[[splay]] sysman s[[ervice]] s[[tate]]
huawei_smartax_display_board_serial-number.textfsm, .*, huawei_smartax, di[[splay]] bo[[ard]] s[[erial-number]]\s*
Expand Down
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
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"
Loading