Skip to content

Commit

Permalink
New Template: Alcatel, sh router ospf int (#931)
Browse files Browse the repository at this point in the history
New template for sros-sh-rtr-ospf-int
  • Loading branch information
h4ndzdatm0ld authored May 21, 2021
1 parent 221d88b commit f030fc8
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
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"

0 comments on commit f030fc8

Please sign in to comment.