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: Alcatel, sh router ospf int #931

Merged
merged 2 commits into from
May 21, 2021
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,27 @@
Value Required INTERFACE (\S+)
Value Required AREA (\S+)
Value Required DESIG_RTR (\S+)
Value Required BKUP_DESIG_RTR (\S+)
Value Required ADMIN_STATE (\S+)
Value Required OPER_STATE (\S+)

Start
^=+
^Rtr\s+Base
^If\s+Name\s+Area\s+Id\s+Designated\s+Rtr\s+Bkup\s+Desig\s+Rtr\s+Adm\s+Oper\s*$$
^-+ -> Interface
^\s*$$
^. -> Error

Interface
^${INTERFACE}\s+${AREA}\s+${DESIG_RTR}\s+${BKUP_DESIG_RTR}\s+${ADMIN_STATE}\s+${OPER_STATE} -> Record
^-+ -> Total
^\s*$$
^. -> Error

Total
^No.\s+
^=+ -> Done
^. -> Error

Done
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ alcatel_sros_show_router_bgp_summary_family.textfsm, .*, alcatel_sros, sh[[ow]]
alcatel_sros_show_router_isis_adjacency.textfsm, .*, alcatel_sros, sh[[ow]] router isis adj[[acency]]
alcatel_sros_show_router_isis_interface.textfsm, .*, alcatel_sros, sh[[ow]] router isis int[[erface]]
alcatel_sros_show_router_mpls_interface.textfsm, .*, alcatel_sros, sh[[ow]] router mpls int[[erface]]
alcatel_sros_show_router_ospf_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ospf int[[erface]]
alcatel_sros_show_router_rsvp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router rsvp int[[erface]]
alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]]
alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===============================================================================
Rtr Base OSPFv2 Instance 0 Interfaces
===============================================================================
If Name Area Id Designated Rtr Bkup Desig Rtr Adm Oper
-------------------------------------------------------------------------------
system 0.0.0.0 10.10.10.3 0.0.0.0 Up DR
TO_IOSXR 0.0.0.0 0.0.0.0 0.0.0.0 Up PToP
TO_R1 0.0.0.0 0.0.0.0 0.0.0.0 Up PToP
TO_R4 0.0.0.0 0.0.0.0 0.0.0.0 Up PToP
-------------------------------------------------------------------------------
No. of OSPF Interfaces: 4
===============================================================================
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
parsed_sample:
- interface: "system"
area: "0.0.0.0"
desig_rtr: "10.10.10.3"
bkup_desig_rtr: "0.0.0.0"
admin_state: "Up"
oper_state: "DR"
- interface: "TO_IOSXR"
area: "0.0.0.0"
desig_rtr: "0.0.0.0"
bkup_desig_rtr: "0.0.0.0"
admin_state: "Up"
oper_state: "PToP"
- interface: "TO_R1"
area: "0.0.0.0"
desig_rtr: "0.0.0.0"
bkup_desig_rtr: "0.0.0.0"
admin_state: "Up"
oper_state: "PToP"
- interface: "TO_R4"
area: "0.0.0.0"
desig_rtr: "0.0.0.0"
bkup_desig_rtr: "0.0.0.0"
admin_state: "Up"
oper_state: "PToP"