diff --git a/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm b/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm index 1d7f771f63..6e4db77094 100644 --- a/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm +++ b/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm @@ -19,5 +19,5 @@ Start ^\s+subnet\s+${NETWORK}\/${PREFIX_LENGTH}\s* ^\s+range\s+${START_IP}\s+${END_IP}\s* ^\s+host\s+${HOST}\s* - ^\s+fqdn\s+${FQDN}\s* + ^\s+fqdn\s+(?:v\d+\s+)?${FQDN}\s* ^. -> Error diff --git a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw index 5f386df3b2..71f0c9a921 100644 --- a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw +++ b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw @@ -25,3 +25,7 @@ object network internal-ipv6-subnet subnet fd00::/8 object network fqdn_test fqdn google.com +object network fqdn_test_v4 + fqdn v4 example.com +object network fqdn_test_v6 + fqdn v6 example.com diff --git a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml index e6d371fba1..b6ebb90d25 100644 --- a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml +++ b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml @@ -1,8 +1,8 @@ --- parsed_sample: - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "" name: "corp" netmask: "255.0.0.0" @@ -11,8 +11,8 @@ parsed_sample: start_ip: "" type: "subnet" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "" name: "internal" netmask: "255.255.255.0" @@ -21,8 +21,8 @@ parsed_sample: start_ip: "" type: "subnet" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "10.10.11.1" name: "host-10.10.11.1" netmask: "" @@ -31,8 +31,8 @@ parsed_sample: start_ip: "" type: "host" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "10.75.51.11" name: "block" netmask: "" @@ -41,8 +41,8 @@ parsed_sample: start_ip: "" type: "host" - description: "dmz GW ip" - fqdn: "" end_ip: "" + fqdn: "" host: "11.1.2.2" name: "dmz" netmask: "" @@ -51,8 +51,8 @@ parsed_sample: start_ip: "" type: "host" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "10.1.11.8" name: "server-vip" netmask: "" @@ -61,8 +61,8 @@ parsed_sample: start_ip: "" type: "host" - description: "" - fqdn: "" end_ip: "10.10.10.60" + fqdn: "" host: "" name: "visitors" netmask: "" @@ -71,8 +71,8 @@ parsed_sample: start_ip: "10.10.10.4" type: "range" - description: "" - fqdn: "" end_ip: "10.75.51.100" + fqdn: "" host: "" name: "contractor" netmask: "" @@ -81,8 +81,8 @@ parsed_sample: start_ip: "10.75.51.15" type: "range" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "2606:4700:4700::1111" name: "cloudflare-ipv6-dns-primary" netmask: "" @@ -91,8 +91,8 @@ parsed_sample: start_ip: "" type: "host" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "2001:4860:4860::8888" name: "google-ipv6-dns-primary" netmask: "" @@ -101,8 +101,8 @@ parsed_sample: start_ip: "" type: "host" - description: "" - fqdn: "" end_ip: "fd00::ffff" + fqdn: "" host: "" name: "internal-ipv6-range" netmask: "" @@ -111,8 +111,8 @@ parsed_sample: start_ip: "fd00::" type: "range" - description: "" - fqdn: "" end_ip: "" + fqdn: "" host: "" name: "internal-ipv6-subnet" netmask: "" @@ -121,8 +121,8 @@ parsed_sample: start_ip: "" type: "subnet" - description: "" - fqdn: "google.com" end_ip: "" + fqdn: "google.com" host: "" name: "fqdn_test" netmask: "" @@ -130,3 +130,23 @@ parsed_sample: prefix_length: "" start_ip: "" type: "fqdn" + - description: "" + end_ip: "" + fqdn: "example.com" + host: "" + name: "fqdn_test_v4" + netmask: "" + network: "" + prefix_length: "" + start_ip: "" + type: "fqdn" + - description: "" + end_ip: "" + fqdn: "example.com" + host: "" + name: "fqdn_test_v6" + netmask: "" + network: "" + prefix_length: "" + start_ip: "" + type: "fqdn"