Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nxos communit list #220

Merged
merged 2 commits into from
Oct 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions templates/cisco_nxos_show_ip_community-list.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Value Required,Filldown TYPE (Standard|Expanded)
Value Required,Filldown NAME (\S+)
Value Required SEQ (\d+)
Value Required ACTION (permit|deny)
Value List AS (\d+)
Value List TAG (\d+)
Value COMMUNITY (\D+)

Start
^${TYPE}\s+Community\s+List\s+${NAME}\s*$$
^\s+${SEQ}\s+${ACTION}\s+\"*${AS}:${TAG}\"* -> Continue
^\s+\d+\s+(?:permit|deny)\s+\"*\d+:\d+\"*\s+\"*${AS}:${TAG}\"* -> Continue
^\s+\d+\s+(?:permit|deny)\s+(?:\"*\d+:\d+\"*\s+){2}\"*${AS}:${TAG}\"* -> Continue
^\s+\d+\s+(?:permit|deny)\s+(?:\"*\d+:\d+\"*\s+){3}\"*${AS}:${TAG}\"* -> Continue
^\s+.+\"*\d+:\d+\"*\s+${COMMUNITY}\s*$$ -> Continue
^\s+${SEQ}\s+${ACTION}\s+${COMMUNITY}\s*$$ -> Continue
^\s+ -> Record
^$$
^.*$$ -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ cisco_nxos_show_ipv6_interface_brief.template, .*, cisco_nxos, sh[[ow]] ipv[[6]]
cisco_nxos_show_port-channel_summary.template, .*, cisco_nxos, sh[[ow]] po[[rt-channel]] sum[[mary]]
cisco_nxos_show_cts_interface_brief.template, .*, cisco_nxos, sh[[ow]] cts inte[[rface]] br[[ief]]
cisco_nxos_show_cts_interface_all.template, .*, cisco_nxos, sh[[ow]] ct[[s]] inter[[face]] al[[l]]
cisco_nxos_show_ip_community-list.template, .*, cisco_nxos, sh[[ow]] ip comm[[unity-list]]
cisco_nxos_show_mac_address-table.template, .*, cisco_nxos, sh[[ow]] m[[ac]] addr[[ess-table]]
cisco_nxos_show_interface_status.template, .*, cisco_nxos, sh[[ow]] int[[erface]] st[[atus]]
cisco_nxos_show_ip_bgp_neighbors.template, .*, cisco_nxos, sh[[ow]] ip bgp nei[[ghbors]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
parsed_sample:
- type: "Expanded"
name: "ROUTES_CL1"
seq: '1'
action: "permit"
as: ["11111"]
tag: ["10000"]
community: ""
- type: "Standard"
name: "ROUTES_CL2"
seq: '1'
action: "permit"
as: ["11111"]
tag: ["10000"]
community: ""
- type: "Standard"
name: "ROUTES_CL2"
seq: '2'
action: "permit"
as: ["22222"]
tag: ["10000"]
community: ""
- type: "Standard"
name: "ROUTES_CL2"
seq: '3'
action: "permit"
as: ["33333"]
tag: ["10000"]
community: ""
- type: "Standard"
name: "ROUTES_CL2"
seq: '4'
action: "permit"
as: ["44444", "55555"]
tag: ["10000", "10005"]
community: "no-export"
- type: "Standard"
name: "ROUTES_CL2"
seq: '5'
action: "deny"
as: []
tag: []
community: "internet"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Expanded Community List ROUTES_CL1
1 permit "11111:10000"
Standard Community List ROUTES_CL2
1 permit 11111:10000
2 permit 22222:10000
3 permit 33333:10000
4 permit 44444:10000 55555:10005 no-export
5 deny internet