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

New template for Huawei ONT: display port statistics portid 1 #2051

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,21 @@
Value ETHERNET_PORTID (\d+)
Value RX_UNICAST_PACKETS (\d+)
Value TX_UNICAST_PACKETS (\d+)
Value RX_BROADCAST_PACKETS (\d+)
Value TX_BROADCAST_PACKETS (\d+)
Value RX_MULTICAST_PACKETS (\d+)
Value TX_MULTICAST_PACKETS (\d+)
Value DROPPED_PACKETS (\d+)

Start
^\s*Ethernet\s+portid\s*=\s*${ETHERNET_PORTID}\s*$$
^\s*Rx\s+unicast\s+packets\s*:\s*${RX_UNICAST_PACKETS}\s*$$
^\s*Tx\s+unicast\s+packets\s*:\s*${TX_UNICAST_PACKETS}\s*$$
^\s*Rx\s+broadcast\s+packets\s*:\s*${RX_BROADCAST_PACKETS}\s*$$
^\s*Tx\s+broadcast\s+packets\s*:\s*${TX_BROADCAST_PACKETS}\s*$$
^\s*Rx\s+multicast\s+packets\s*:\s*${RX_MULTICAST_PACKETS}\s*$$
^\s*Tx\s+multicast\s+packets\s*:\s*${TX_MULTICAST_PACKETS}\s*$$
^\s*Dropped\s+packets\s*:\s*${DROPPED_PACKETS}\s*$$
^\s+$$
^\s*success!\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ hp_procurve_show_vlans.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] vl[[ans]]
hp_procurve_show_arp.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] ar[[p]]
hp_procurve_show_ip.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] ip

huawei_ont_display_port_statistics_portid_0.textfsm, .*, huawei_ont, di[[splay]] p[[ort]] s[[tatistics]] po[[rtid]] \d+
huawei_ont_display_wifi_information.textfsm, .*, huawei_ont, di[[splay]] w[[ifi]] i[[nformation]]
huawei_ont_display_epon_ont_info.textfsm, .*, huawei_ont, di[[splay]] ep[[on]] o[[nt]] i[[nfo]]
huawei_ont_display_inner_version.textfsm, .*, huawei_ont, di[[splay]] in[[ner]] ve[[rsion]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Ethernet portid = 1
Rx unicast packets : 4477
Tx unicast packets : 3390
Rx broadcast packets : 70780
Tx broadcast packets : 1
Rx multicast packets : 4011
Tx multicast packets : 0
Dropped packets : 0

success!
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
parsed_sample:
- dropped_packets: "0"
ethernet_portid: "1"
rx_broadcast_packets: "70780"
rx_multicast_packets: "4011"
rx_unicast_packets: "4477"
tx_broadcast_packets: "1"
tx_multicast_packets: "0"
tx_unicast_packets: "3390"