-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cisco_asa_show running-config object network
: Add new template (#306)
- Loading branch information
1 parent
54a41a4
commit 8cdadd5
Showing
4 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
templates/cisco_asa_show_running-config_object_network.template
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,21 @@ | ||
Value Required NAME (\S+) | ||
Value DESC (.+) | ||
Value TYPE ([hostubnerag]+) | ||
Value HOST (\S+) | ||
Value NETWORK (\S+) | ||
Value MASK (\S+) | ||
Value CIDR (\/\d+) | ||
Value START_IP (\S+) | ||
Value END_IP (\S+) | ||
|
||
|
||
Start | ||
^object\s+network -> Continue.Record | ||
^object\s+network\s+${NAME}\s* | ||
^\s+description\s+${DESC}\s* | ||
^\s+${TYPE} -> Continue | ||
^\s+subnet\s+${NETWORK}\s+${MASK}\s* | ||
^\s+subnet\s+${NETWORK}${CIDR}\s* | ||
^\s+range\s+${START_IP}\s+${END_IP}\s* | ||
^\s+host\s+${HOST}\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
120 changes: 120 additions & 0 deletions
120
...sa/show_running-config_object_network/cisco_asa_show_running-config_object_network.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,120 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- name: "corp" | ||
desc: "" | ||
type: "subnet" | ||
host: "" | ||
network: "10.0.0.0" | ||
mask: "255.0.0.0" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "internal" | ||
desc: "" | ||
type: "subnet" | ||
host: "" | ||
network: "192.168.0.0" | ||
mask: "255.255.255.0" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "any" | ||
desc: "" | ||
type: "subnet" | ||
host: "" | ||
network: "0.0.0.0" | ||
mask: "0.0.0.0" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "host-10.10.11.1" | ||
desc: "" | ||
type: "host" | ||
host: "10.10.11.1" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "block" | ||
desc: "" | ||
type: "host" | ||
host: "10.75.51.11" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "dmz" | ||
desc: "dmz GW ip" | ||
type: "host" | ||
host: "11.1.2.2" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "server-vip" | ||
desc: "" | ||
type: "host" | ||
host: "10.1.11.8" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "visitors" | ||
desc: "" | ||
type: "range" | ||
host: "" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "10.10.10.4" | ||
end_ip: "10.10.10.60" | ||
- name: "contractor" | ||
desc: "" | ||
type: "range" | ||
host: "" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "10.75.51.15" | ||
end_ip: "10.75.51.100" | ||
- name: "cloudflare-ipv6-dns-primary" | ||
desc: "" | ||
type: "host" | ||
host: "2606:4700:4700::1111" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "google-ipv6-dns-primary" | ||
desc: "" | ||
type: "host" | ||
host: "2001:4860:4860::8888" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "" | ||
end_ip: "" | ||
- name: "internal-ipv6-range" | ||
desc: "" | ||
type: "range" | ||
host: "" | ||
network: "" | ||
mask: "" | ||
cidr: "" | ||
start_ip: "fd00::" | ||
end_ip: "fd00::ffff" | ||
- name: "internal-ipv6-subnet" | ||
desc: "" | ||
type: "subnet" | ||
host: "" | ||
network: "fd00::" | ||
mask: "" | ||
cidr: "/8" | ||
start_ip: "" | ||
end_ip: "" |
27 changes: 27 additions & 0 deletions
27
...o_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.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,27 @@ | ||
object network corp | ||
subnet 10.0.0.0 255.0.0.0 | ||
object network internal | ||
subnet 192.168.0.0 255.255.255.0 | ||
object network any | ||
subnet 0.0.0.0 0.0.0.0 | ||
object network host-10.10.11.1 | ||
host 10.10.11.1 | ||
object network block | ||
host 10.75.51.11 | ||
object network dmz | ||
description dmz GW ip | ||
host 11.1.2.2 | ||
object network server-vip | ||
host 10.1.11.8 | ||
object network visitors | ||
range 10.10.10.4 10.10.10.60 | ||
object network contractor | ||
range 10.75.51.15 10.75.51.100 | ||
object network cloudflare-ipv6-dns-primary | ||
host 2606:4700:4700::1111 | ||
object network google-ipv6-dns-primary | ||
host 2001:4860:4860::8888 | ||
object network internal-ipv6-range | ||
range fd00:: fd00::ffff | ||
object network internal-ipv6-subnet | ||
subnet fd00::/8 |