forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: cisco_ios_show_ip_ospf_database_router (networktocode#606)
- Loading branch information
1 parent
1c883db
commit 247e2e7
Showing
4 changed files
with
419 additions
and
0 deletions.
There are no files selected for viewing
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,48 @@ | ||
Value Filldown ROUTER_ID (\d+\.\d+\.\d+\.\d+) | ||
Value Filldown PROCESS_ID (\d+) | ||
Value Filldown AREA (\d+\.\d+\.\d+\.\d+|\d+) | ||
Value Filldown LSA_AGE (\d+) | ||
Value Filldown LSA_OPTIONS (.+) | ||
Value Filldown LSA_TYPE (.+) | ||
Value Filldown LSA_ID (\d+\.\d+\.\d+\.\d+) | ||
Value Filldown LSA_ADV_ROUTER (\d+\.\d+\.\d+\.\d+) | ||
Value Filldown LSA_SEQ_NUMBER (\S+) | ||
Value Filldown LSA_CHECKSUM (\S+) | ||
Value Filldown LSA_LENGTH (\d+) | ||
Value Filldown LSA_NUM_LINKS (\d+) | ||
Value LS_LINK_TYPE (.+?) | ||
Value LS_LINK_ID (\d+\.\d+\.\d+\.\d+) | ||
Value LS_LINK_DATA (\d+\.\d+\.\d+\.\d+) | ||
Value LS_MTID_METRICS (\d+) | ||
Value LS_TOS_0_METRICS (\d+) | ||
|
||
Start | ||
^\s+OSPF\s+Router\s+with\s+ID\s+\(${ROUTER_ID}\)\s+\(Process\s+ID\s+${PROCESS_ID}\) | ||
^\s+Router\s+Link\s+States\s+\(Area ${AREA}\) -> LSAInfo | ||
^\s*$$ | ||
^. -> Error | ||
|
||
LSAInfo | ||
^\s+LS\s+age:\s+${LSA_AGE} | ||
^\s+Options:\s+\(${LSA_OPTIONS}\) | ||
^\s+LS\s+Type:\s+${LSA_TYPE} | ||
^\s+Link\s+State\s+ID:\s+${LSA_ID} | ||
^\s+Advertising Router:\s+${LSA_ADV_ROUTER} | ||
^\s+LS\s+Seq\s+Number:\s+${LSA_SEQ_NUMBER} | ||
^\s+Checksum:\s+${LSA_CHECKSUM} | ||
^\s+Length:\s+${LSA_LENGTH} | ||
^\s+Number\s+of\s+Links:\s+${LSA_NUM_LINKS} -> LSAs | ||
^\s*$$ | ||
^. -> Error | ||
|
||
LSAs | ||
^\s+Link\s+connected\s+to:\s+${LS_LINK_TYPE}$$ | ||
^\s+\(Link ID\)\s+((Network\/subnet\s+number)|(Designated\s+Router\s+address)|(Neighboring\s+Router ID)):\s+${LS_LINK_ID} | ||
^\s+\(Link Data\)\s+((Network\s+Mask)|(Router\s+Interface\s+address)):\s+${LS_LINK_DATA} | ||
^\s+Number\s+of\s+MTID\s+metrics:\s+${LS_MTID_METRICS} | ||
^\s+TOS\s+0\s+Metrics:\s+${LS_TOS_0_METRICS} -> Next.Record | ||
^\s+LS\s+age:\s+${LSA_AGE} -> LSAInfo | ||
^\s*$$ | ||
^. -> Error | ||
|
||
EOF |
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
130 changes: 130 additions & 0 deletions
130
tests/cisco_ios/show_ip_ospf_database_router/cisco_ios_show_ip_ospf_database_router.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,130 @@ | ||
OSPF Router with ID (100.1.1.1) (Process ID 1) | ||
|
||
Router Link States (Area 0) | ||
|
||
LS age: 14 | ||
Options: (No TOS-capability, DC) | ||
LS Type: Router Links | ||
Link State ID: 100.1.1.1 | ||
Advertising Router: 100.1.1.1 | ||
LS Seq Number: 80000206 | ||
Checksum: 0x8A21 | ||
Length: 72 | ||
Number of Links: 4 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 100.1.1.1 | ||
(Link Data) Network Mask: 255.255.255.255 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.2.1 | ||
(Link Data) Router Interface address: 192.168.2.1 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: another Router (point-to-point) | ||
(Link ID) Neighboring Router ID: 100.3.3.3 | ||
(Link Data) Router Interface address: 192.168.1.1 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 192.168.1.0 | ||
(Link Data) Network Mask: 255.255.255.252 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
|
||
LS age: 1694 | ||
Options: (No TOS-capability, DC) | ||
LS Type: Router Links | ||
Link State ID: 100.2.2.2 | ||
Advertising Router: 100.2.2.2 | ||
LS Seq Number: 80000202 | ||
Checksum: 0xCA4F | ||
Length: 60 | ||
Number of Links: 3 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 100.2.2.2 | ||
(Link Data) Network Mask: 255.255.255.255 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.3.2 | ||
(Link Data) Router Interface address: 192.168.3.1 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.2.1 | ||
(Link Data) Router Interface address: 192.168.2.2 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
|
||
LS age: 15 | ||
Options: (No TOS-capability, DC) | ||
LS Type: Router Links | ||
Link State ID: 100.3.3.3 | ||
Advertising Router: 100.3.3.3 | ||
LS Seq Number: 800001FD | ||
Checksum: 0x3969 | ||
Length: 72 | ||
Number of Links: 4 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 100.3.3.3 | ||
(Link Data) Network Mask: 255.255.255.255 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.4.2 | ||
(Link Data) Router Interface address: 192.168.4.1 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: another Router (point-to-point) | ||
(Link ID) Neighboring Router ID: 100.1.1.1 | ||
(Link Data) Router Interface address: 192.168.1.2 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 192.168.1.0 | ||
(Link Data) Network Mask: 255.255.255.252 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
|
||
LS age: 1752 | ||
Options: (No TOS-capability, DC) | ||
LS Type: Router Links | ||
Link State ID: 100.4.4.4 | ||
Advertising Router: 100.4.4.4 | ||
LS Seq Number: 800001F7 | ||
Checksum: 0x5CB0 | ||
Length: 60 | ||
Number of Links: 3 | ||
|
||
Link connected to: a Stub Network | ||
(Link ID) Network/subnet number: 100.4.4.4 | ||
(Link Data) Network Mask: 255.255.255.255 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.4.2 | ||
(Link Data) Router Interface address: 192.168.4.2 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 | ||
|
||
Link connected to: a Transit Network | ||
(Link ID) Designated Router address: 192.168.3.2 | ||
(Link Data) Router Interface address: 192.168.3.2 | ||
Number of MTID metrics: 0 | ||
TOS 0 Metrics: 1 |
Oops, something went wrong.