Skip to content

Commit 33f4faa

Browse files
ppisnjakmjbear
andauthored
Update cisco_asa_show_running-config_object_network.textfsm (#1952)
Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent 2b8a265 commit 33f4faa

3 files changed

Lines changed: 38 additions & 14 deletions

File tree

ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Start
1919
^\s+subnet\s+${NETWORK}\/${PREFIX_LENGTH}\s*
2020
^\s+range\s+${START_IP}\s+${END_IP}\s*
2121
^\s+host\s+${HOST}\s*
22-
^\s+fqdn\s+${FQDN}\s*
22+
^\s+fqdn\s+(?:v\d+\s+)?${FQDN}\s*
2323
^. -> Error

tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ object network internal-ipv6-subnet
2525
subnet fd00::/8
2626
object network fqdn_test
2727
fqdn google.com
28+
object network fqdn_test_v4
29+
fqdn v4 example.com
30+
object network fqdn_test_v6
31+
fqdn v6 example.com
Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
parsed_sample:
33
- description: ""
4-
fqdn: ""
54
end_ip: ""
5+
fqdn: ""
66
host: ""
77
name: "corp"
88
netmask: "255.0.0.0"
@@ -11,8 +11,8 @@ parsed_sample:
1111
start_ip: ""
1212
type: "subnet"
1313
- description: ""
14-
fqdn: ""
1514
end_ip: ""
15+
fqdn: ""
1616
host: ""
1717
name: "internal"
1818
netmask: "255.255.255.0"
@@ -21,8 +21,8 @@ parsed_sample:
2121
start_ip: ""
2222
type: "subnet"
2323
- description: ""
24-
fqdn: ""
2524
end_ip: ""
25+
fqdn: ""
2626
host: "10.10.11.1"
2727
name: "host-10.10.11.1"
2828
netmask: ""
@@ -31,8 +31,8 @@ parsed_sample:
3131
start_ip: ""
3232
type: "host"
3333
- description: ""
34-
fqdn: ""
3534
end_ip: ""
35+
fqdn: ""
3636
host: "10.75.51.11"
3737
name: "block"
3838
netmask: ""
@@ -41,8 +41,8 @@ parsed_sample:
4141
start_ip: ""
4242
type: "host"
4343
- description: "dmz GW ip"
44-
fqdn: ""
4544
end_ip: ""
45+
fqdn: ""
4646
host: "11.1.2.2"
4747
name: "dmz"
4848
netmask: ""
@@ -51,8 +51,8 @@ parsed_sample:
5151
start_ip: ""
5252
type: "host"
5353
- description: ""
54-
fqdn: ""
5554
end_ip: ""
55+
fqdn: ""
5656
host: "10.1.11.8"
5757
name: "server-vip"
5858
netmask: ""
@@ -61,8 +61,8 @@ parsed_sample:
6161
start_ip: ""
6262
type: "host"
6363
- description: ""
64-
fqdn: ""
6564
end_ip: "10.10.10.60"
65+
fqdn: ""
6666
host: ""
6767
name: "visitors"
6868
netmask: ""
@@ -71,8 +71,8 @@ parsed_sample:
7171
start_ip: "10.10.10.4"
7272
type: "range"
7373
- description: ""
74-
fqdn: ""
7574
end_ip: "10.75.51.100"
75+
fqdn: ""
7676
host: ""
7777
name: "contractor"
7878
netmask: ""
@@ -81,8 +81,8 @@ parsed_sample:
8181
start_ip: "10.75.51.15"
8282
type: "range"
8383
- description: ""
84-
fqdn: ""
8584
end_ip: ""
85+
fqdn: ""
8686
host: "2606:4700:4700::1111"
8787
name: "cloudflare-ipv6-dns-primary"
8888
netmask: ""
@@ -91,8 +91,8 @@ parsed_sample:
9191
start_ip: ""
9292
type: "host"
9393
- description: ""
94-
fqdn: ""
9594
end_ip: ""
95+
fqdn: ""
9696
host: "2001:4860:4860::8888"
9797
name: "google-ipv6-dns-primary"
9898
netmask: ""
@@ -101,8 +101,8 @@ parsed_sample:
101101
start_ip: ""
102102
type: "host"
103103
- description: ""
104-
fqdn: ""
105104
end_ip: "fd00::ffff"
105+
fqdn: ""
106106
host: ""
107107
name: "internal-ipv6-range"
108108
netmask: ""
@@ -111,8 +111,8 @@ parsed_sample:
111111
start_ip: "fd00::"
112112
type: "range"
113113
- description: ""
114-
fqdn: ""
115114
end_ip: ""
115+
fqdn: ""
116116
host: ""
117117
name: "internal-ipv6-subnet"
118118
netmask: ""
@@ -121,12 +121,32 @@ parsed_sample:
121121
start_ip: ""
122122
type: "subnet"
123123
- description: ""
124-
fqdn: "google.com"
125124
end_ip: ""
125+
fqdn: "google.com"
126126
host: ""
127127
name: "fqdn_test"
128128
netmask: ""
129129
network: ""
130130
prefix_length: ""
131131
start_ip: ""
132132
type: "fqdn"
133+
- description: ""
134+
end_ip: ""
135+
fqdn: "example.com"
136+
host: ""
137+
name: "fqdn_test_v4"
138+
netmask: ""
139+
network: ""
140+
prefix_length: ""
141+
start_ip: ""
142+
type: "fqdn"
143+
- description: ""
144+
end_ip: ""
145+
fqdn: "example.com"
146+
host: ""
147+
name: "fqdn_test_v6"
148+
netmask: ""
149+
network: ""
150+
prefix_length: ""
151+
start_ip: ""
152+
type: "fqdn"

0 commit comments

Comments
 (0)