Skip to content

Commit

Permalink
Merge pull request #251 from jmcgill298/ios_pfx_list
Browse files Browse the repository at this point in the history
CISCO_IOS_SHOW_IP_PREFIX-LIST: Add new template
  • Loading branch information
jmcgill298 authored Oct 14, 2018
2 parents 1e9e9c8 + fdce115 commit a61f381
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/cisco_ios_show_ip_prefix-list.template
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ cisco_ios_show_ip_ospf_neighbor.template, .*, cisco_ios, sh[[ow]] ip ospf nei[[g
cisco_ios_show_ip_access-lists.template, .*, cisco_ios, sh[[ow]] ip acce[[ss-lists]]
cisco_ios_show_power_available.template, .*, cisco_ios, sh[[ow]] pow[[er]] a[[vailable]]
cisco_ios_show_ip_bgp_summary.template, .*, cisco_ios, sh[[ow]] ip bgp sum[[mary]]
cisco_ios_show_ip_prefix-list.template, .*, cisco_ios, sh[[ow]] ip pre[[fix-list]]
cisco_ios_show_ipv6_int_brief.template, .*, cisco_ios, sh[[ow]] ipv[[6]] i[[nterface]] b[[rief]]
cisco_ios_show_isis_neighbors.template, .*, cisco_ios, sh[[ow]] isis ne[[ighbors]]
cisco_ios_show_lldp_neighbors.template, .*, cisco_ios, sh[[ow]] lld[[p]] neig[[hbors]]
Expand Down
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'
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

0 comments on commit a61f381

Please sign in to comment.