Skip to content

Commit

Permalink
New Template: huawei_smartax_display_mac-address_ont_0_1_2_0 (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 authored Sep 17, 2024
1 parent 0c92f5f commit e5a5119
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Value FSP (\d+\/\s*\d+\/\d+)
Value ONT_ID (\d+)
Value ONT_PORT_TYPE (\S+)
Value ONT_PORT_ID (\d+)
Value MAC (\S+)
Value VLAN (\d+)

Start
^\s*-
^\s*F\/S\/P\s+ONTID\s+ONT\s+ONT\s+MAC-ADDRESS\s+VLAN\s*$$
^\s*port-type\s+port-ID\s*$$ -> Macs
^\s*$$
^. -> Error

Macs
^\s*${FSP}\s+${ONT_ID}\s+${ONT_PORT_TYPE}\s+${ONT_PORT_ID}\s+${MAC}\s+${VLAN}\s*$$ -> Record
^\s*-
^\s*Total:\s*\d+
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ huawei_smartax_display_ont_info_summary_ont.textfsm:huawei_smartax_display_ont_i
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*)\s*[[all]] *$
huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.textfsm, .*, huawei_smartax, di[[splay]] ont p[[ort]] vl[[an]] \d+ \d+ byport eth \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_mac-address_ont_0_1_2_0.textfsm, .*, huawei_smartax, di[[splay]] mac-a[[ddress]] o[[nt]] \d+(\/)?\s*\d+(\/)?\s*\d+ \d+ *$
huawei_smartax_display_ont_optical-info_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont o[[ptical-info]] \d+ all
huawei_smartax_display_ont_snmp-profile_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont s[[nmp-profile]] \d+ all
huawei_smartax_display_ont_gemport_0_ontid_0.textfsm, .*, huawei_smartax, di[[splay]] ont g[[emport]] \d+ ontid \d+\s*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---------------------------------------------------------------
F/S/P ONTID ONT ONT MAC-ADDRESS VLAN
port-type port-ID
---------------------------------------------------------------
0/ 2/6 2 ETH 1 805e-0c5c-4277 80
0/ 2/6 2 ETH 1 84a9-3845-d603 1003
0/ 2/6 2 ETH 2 0026-73f9-5a63 1003
---------------------------------------------------------------
Total: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
parsed_sample:
- fsp: "0/ 2/6"
mac: "805e-0c5c-4277"
ont_id: "2"
ont_port_id: "1"
ont_port_type: "ETH"
vlan: "80"
- fsp: "0/ 2/6"
mac: "84a9-3845-d603"
ont_id: "2"
ont_port_id: "1"
ont_port_type: "ETH"
vlan: "1003"
- fsp: "0/ 2/6"
mac: "0026-73f9-5a63"
ont_id: "2"
ont_port_id: "2"
ont_port_type: "ETH"
vlan: "1003"

0 comments on commit e5a5119

Please sign in to comment.