-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: Alcatel, sh router ospf int (#931)
New template for sros-sh-rtr-ospf-int
- Loading branch information
1 parent
221d88b
commit f030fc8
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
ntc_templates/templates/alcatel_sros_show_router_ospf_interface.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/alcatel_sros/show_router_ospf_interface/alcatel_sros_show_router_ospf_interface.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
=============================================================================== |
26 changes: 26 additions & 0 deletions
26
tests/alcatel_sros/show_router_ospf_interface/alcatel_sros_show_router_ospf_interface.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |