-
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.
Merge pull request #251 from jmcgill298/ios_pfx_list
CISCO_IOS_SHOW_IP_PREFIX-LIST: Add new template
- Loading branch information
Showing
4 changed files
with
41 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,13 @@ | ||
Value Required,Filldown NAME (\S+) | ||
Value Required SEQ (\d+) | ||
Value ACTION (\S+) | ||
Value NETWORK ([0-9a-f:\.]+) | ||
Value NETMASK (\d+) | ||
Value LE (\d+) | ||
Value GE (\d+) | ||
|
||
Start | ||
^ip\s+prefix-list\s+${NAME}: | ||
^\s+seq\s+${SEQ}\s+${ACTION}\s+${NETWORK}/${NETMASK}(?:\s+ge\s+${GE}|)(?:\s+le\s+${LE}|)\s*$$ -> Record | ||
^\s*$$ | ||
^.+ -> Error |
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
23 changes: 23 additions & 0 deletions
23
tests/cisco_ios/show_ip_prefix-list/cisco_ios_show_ip_prefix-list.parsed
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,23 @@ | ||
--- | ||
parsed_sample: | ||
- name: "OSPF_Redist" | ||
seq: "5" | ||
action: "deny" | ||
network: "10.0.0.0" | ||
netmask: "24" | ||
le: '' | ||
ge: '' | ||
- name: "OSPF_Redist" | ||
seq: "10" | ||
action: "permit" | ||
network: "0.0.0.0" | ||
netmask: "0" | ||
le: '32' | ||
ge: '' | ||
- name: "OSPF_Redist" | ||
seq: "15" | ||
action: "deny" | ||
network: "10.0.0.0" | ||
netmask: "8" | ||
le: '20' | ||
ge: '10' |
4 changes: 4 additions & 0 deletions
4
tests/cisco_ios/show_ip_prefix-list/cisco_ios_show_ip_prefix-list.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,4 @@ | ||
ip prefix-list OSPF_Redist: 2 entries | ||
seq 5 deny 10.0.0.0/24 | ||
seq 10 permit 0.0.0.0/0 le 32 | ||
seq 15 deny 10.0.0.0/8 ge 10 le 20 |