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 huawei_smartax: display_ont_gemport_0_ontid_0.textfsm #1794

Merged
Show file tree
Hide file tree
Changes from 2 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,15 @@
Value Key GEM_PORT (\d+)
Value T_CONT_ID (\d+)
Value SERVICE_TYPE (\S+)
Value ENCRYPT (\S+)
Value UPSTREAM_PQ (\S+)
Value DOWNSTREAM_PQ (\S+)
Value TRAFFIC_TABLE_INDEX (\S+)

Start
^\s*GEM\s*port\s*T-CONT\s*Service\s*Encrypt\s*Up\s*Down\s*Traffic\s*
^\s*ID\s*ID\s*type\s*PQ\s*PQ\s*table\s*index
^\s+${GEM_PORT}\s+${T_CONT_ID}\s+${SERVICE_TYPE}\s+${ENCRYPT}\s+(-|${UPSTREAM_PQ})\s+(-|${DOWNSTREAM_PQ})\s+(-|${TRAFFIC_TABLE_INDEX}) -> Record
^\s*The\s*number\s*of\s*GEM\s*ports\s*is:\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 @@ -636,6 +636,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_optical-info_0_all.textfsm, .*, huawei_smartax, di[[splay]] ont o[[ptical-info]] \d+ all
huawei_smartax_display_ont_gemport_0_ontid_0.textfsm, .*, huawei_smartax, di[[splay]] ont g[[emport]] \d+ ontid \d+\s*
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*
huawei_smartax_display_ont_autofind.textfsm, .*, huawei_smartax, di[[splay]] ont a[[utofind]]\s*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
F/S/P: 0/0/0 ONT ID: 5
------------------------------------------------------------------------------
GEM port T-CONT Service Encrypt Up Down Traffic
ID ID type PQ PQ table index
------------------------------------------------------------------------------
126 4 ETHERNET off - adapt -
------------------------------------------------------------------------------
Notes: Run the display traffic table ip command to query
traffic table configuration
------------------------------------------------------------------------------
The number of GEM ports is: 1
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
parsed_sample:
- downstream_pq: "adapt"
encrypt: "off"
gem_port: "126"
service_type: "ETHERNET"
t_cont_id: "4"
traffic_table_index: ""
upstream_pq: ""
Loading