From f033b11b800fac5969ad5388801ae0308a4160e5 Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Sat, 11 Nov 2017 08:33:47 -0600 Subject: [PATCH] Restore test textfsm_templates symlinks --- test/eos/utils/textfsm_templates | 1 + .../utils/textfsm_templates/bgp_detail.tpl | 46 ------------------- .../eos/utils/textfsm_templates/ntp_peers.tpl | 6 --- .../utils/textfsm_templates/snmp_config.tpl | 14 ------ test/eos/utils/textfsm_templates/vrf.tpl | 17 ------- test/nxos/utils/textfsm_templates | 1 + .../textfsm_templates/lldp_neighbors.tpl | 9 ---- .../utils/textfsm_templates/snmp_config.tpl | 10 ---- test/nxos/utils/textfsm_templates/users.tpl | 13 ------ test/nxos_ssh/utils/textfsm_templates | 1 + .../textfsm_templates/lldp_neighbors.tpl | 9 ---- .../utils/textfsm_templates/snmp_config.tpl | 10 ---- .../utils/textfsm_templates/users.tpl | 13 ------ 13 files changed, 3 insertions(+), 147 deletions(-) create mode 120000 test/eos/utils/textfsm_templates delete mode 100644 test/eos/utils/textfsm_templates/bgp_detail.tpl delete mode 100644 test/eos/utils/textfsm_templates/ntp_peers.tpl delete mode 100644 test/eos/utils/textfsm_templates/snmp_config.tpl delete mode 100644 test/eos/utils/textfsm_templates/vrf.tpl create mode 120000 test/nxos/utils/textfsm_templates delete mode 100644 test/nxos/utils/textfsm_templates/lldp_neighbors.tpl delete mode 100644 test/nxos/utils/textfsm_templates/snmp_config.tpl delete mode 100644 test/nxos/utils/textfsm_templates/users.tpl create mode 120000 test/nxos_ssh/utils/textfsm_templates delete mode 100644 test/nxos_ssh/utils/textfsm_templates/lldp_neighbors.tpl delete mode 100644 test/nxos_ssh/utils/textfsm_templates/snmp_config.tpl delete mode 100644 test/nxos_ssh/utils/textfsm_templates/users.tpl diff --git a/test/eos/utils/textfsm_templates b/test/eos/utils/textfsm_templates new file mode 120000 index 000000000..1abb77c74 --- /dev/null +++ b/test/eos/utils/textfsm_templates @@ -0,0 +1 @@ +../../../napalm/eos/utils/textfsm_templates \ No newline at end of file diff --git a/test/eos/utils/textfsm_templates/bgp_detail.tpl b/test/eos/utils/textfsm_templates/bgp_detail.tpl deleted file mode 100644 index e1ada9912..000000000 --- a/test/eos/utils/textfsm_templates/bgp_detail.tpl +++ /dev/null @@ -1,46 +0,0 @@ -Value up (\S+) -Value routing_table (\S+) -Value connection_state (\S+) -Value previous_connection_state (\S+) -Value multihop (\d+) -Value remote_as (\d+) -Value local_as (\d+) -Value router_id (\S+) -Value local_address (\S+) -Value local_port (\d+) -Value remote_address (\S+) -Value remote_port (\d+) -Value import_policy (\S+) -Value export_policy (\S+) -Value last_event (\S+) -Value holdtime (\d+) -Value keepalive (\d+) -Value configured_holdtime (\d+) -Value configured_keepalive (\d+) -Value input_messages (\d+) -Value output_messages (\d+) -Value input_updates (\d+) -Value output_updates (\d+) -Value messages_queued_out (\d+) -Value received_prefix_count (\d+) -Value advertised_prefix_count (\d+) - -Start - ^BGP neighbor is ${remote_address}, remote AS ${remote_as}, .* - ^.* remote router ID ${router_id}, VRF ${routing_table} - ^\s+Hold time is ${holdtime}, keepalive interval is ${keepalive} seconds - ^\s+Configured hold time is ${configured_holdtime}, keepalive interval is ${configured_keepalive} seconds - ^\s+BGP state is ${connection_state}, ${up} .* - ^\s+Last state was ${previous_connection_state} - ^\s+Last event was ${last_event} - ^\s+OutQ depth is ${messages_queued_out} - ^\s+Updates:\s+${output_updates}\s+${input_updates} - ^\s+Total messages:\s+${output_messages}\s+${input_messages} - ^\s+IPv4 Unicast:\s+${advertised_prefix_count}\s+${received_prefix_count} - ^\s+Inbound route map is ${import_policy} - ^\s+Outbound route map is ${export_policy} - ^\s+Nexthop matches local IP address: ${multihop} - ^Local AS is ${local_as}.* - ^Local TCP address is ${local_address}, local port is ${local_port} - ^.*, remote port is ${remote_port} - ^Auto-Local-Addr .* -> Next.Record diff --git a/test/eos/utils/textfsm_templates/ntp_peers.tpl b/test/eos/utils/textfsm_templates/ntp_peers.tpl deleted file mode 100644 index 58042e0ba..000000000 --- a/test/eos/utils/textfsm_templates/ntp_peers.tpl +++ /dev/null @@ -1,6 +0,0 @@ -Value NTPPeer (\w+.*) - -Start - ^ntp\s+server\s+${NTPPeer} -> Record - -EOF diff --git a/test/eos/utils/textfsm_templates/snmp_config.tpl b/test/eos/utils/textfsm_templates/snmp_config.tpl deleted file mode 100644 index 2340e093b..000000000 --- a/test/eos/utils/textfsm_templates/snmp_config.tpl +++ /dev/null @@ -1,14 +0,0 @@ -Value Location (\w+.*) -Value Contact (\w+.*) -Value Chassis_ID (\w+.*) -Value Community (\w+.*) -Value Mode (ro|rw) -Value ACL (\w+.*) - -Start - ^snmp-server\slocation\s${Location} - ^snmp-server\scontact\s${Contact} - ^snmp-server\schassis-id\s${Chassis_ID} - ^snmp-server\scommunity\s${Community}\s((${Mode} ${ACL})|(group\s(.*))) -> Next.Record - -EOF diff --git a/test/eos/utils/textfsm_templates/vrf.tpl b/test/eos/utils/textfsm_templates/vrf.tpl deleted file mode 100644 index 8d6a532e7..000000000 --- a/test/eos/utils/textfsm_templates/vrf.tpl +++ /dev/null @@ -1,17 +0,0 @@ -Value Required Name (\S+) -Value Route_Distinguisher (\d+:\d+|) -Value List Interfaces (.+?) - - -Start - ^\s\S+\s+(\d|<) -> Continue.Record - ^\s+${Name}\s+${Route_Distinguisher}\s+(ipv4(,ipv6)?\s+)?v4:(incomplete|(no )?routing(; multicast)?),\s+${Interfaces}(?:,|\s|$$) -> Continue - ^\s+\S+\s+(?:\d+:\d+|)\s+(ipv4(,ipv6)?\s+)?v4:(incomplete|(no )?routing(; multicast)?),\s+(.+?),\s${Interfaces}(\s|,|$$) -> Continue - ^\s+\S+\s+(?:\d+:\d+|)\s+(ipv4(,ipv6)?\s+)?v4:(incomplete|(no )?routing(; multicast)?),\s+(.+?),\s(.+?),\s${Interfaces}(\s|,|$$) -> Continue - ^\s+${Name}\s+${Route_Distinguisher}\s+(ipv4(,ipv6)?\s+)?v4:(incomplete|(no )?routing(; multicast)?), -> Continue - ^\s{33,37}v6:(incomplete|(no )?routing)\s+${Interfaces}(?:\s|,|$$) -> Continue - ^\s{33,37}v6:(incomplete|(no )?routing)\s+(.+?),\s+${Interfaces}(?:\s|,|$$) -> Continue - ^\s{33,37}v6:(incomplete|(no )?routing)\s+(.+?),\s+(.+?),\s+${Interfaces}(?:\s|,|$$) -> Continue - ^\s{58,62}\s+${Interfaces}(?:\s|,|$$) -> Continue - ^\s{58,62}\s+.+?,${Interfaces}(?:\s|,|$$) -> Continue - ^\s{58,62}\s+.+?,.+?,${Interfaces}(?:\s|,|$$) -> Continue diff --git a/test/nxos/utils/textfsm_templates b/test/nxos/utils/textfsm_templates new file mode 120000 index 000000000..7f97f02ea --- /dev/null +++ b/test/nxos/utils/textfsm_templates @@ -0,0 +1 @@ +../../../napalm/nxos/utils/textfsm_templates \ No newline at end of file diff --git a/test/nxos/utils/textfsm_templates/lldp_neighbors.tpl b/test/nxos/utils/textfsm_templates/lldp_neighbors.tpl deleted file mode 100644 index 77f55ad2a..000000000 --- a/test/nxos/utils/textfsm_templates/lldp_neighbors.tpl +++ /dev/null @@ -1,9 +0,0 @@ -Value NEIGHBOR (\S+) -Value LOCAL_INTERFACE (\S+) -Value NEIGHBOR_INTERFACE (\S+) - -Start - ^Device.*ID -> LLDP - -LLDP - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+[\w+\s]+\S+\s+${NEIGHBOR_INTERFACE} -> Record diff --git a/test/nxos/utils/textfsm_templates/snmp_config.tpl b/test/nxos/utils/textfsm_templates/snmp_config.tpl deleted file mode 100644 index aa070fd53..000000000 --- a/test/nxos/utils/textfsm_templates/snmp_config.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Value Location (.*) -Value Contact (.*) -Value Community (\S+) -Value Mode (network\-admin|network\-operator) -Value ACL (\S+) - -Start - ^snmp-server\slocation\s${Location} -> Record - ^snmp-server\scontact\s${Contact} -> Record - ^snmp-server\scommunity\s${Community}\s((group\s+${Mode}|use\-.+\s+${ACL})) -> Next.Record diff --git a/test/nxos/utils/textfsm_templates/users.tpl b/test/nxos/utils/textfsm_templates/users.tpl deleted file mode 100644 index 141fd5df3..000000000 --- a/test/nxos/utils/textfsm_templates/users.tpl +++ /dev/null @@ -1,13 +0,0 @@ -Value Username (\w+.*) -Value Password (.*) -Value Role (\w+.*) -Value SSHKeyType (ssh-rsa|ssh-dsa) -Value SSHKeyValue (\w+.*) - - -Start - ^username\s+${Username}\s+password\s+\d+\s+${Password}\s+role\s+${Role} -> Record - ^username\s+${Username}\s+role\s+${Role} -> Record - ^username\s+${Username}\s+sshkey\s+${SSHKeyType}\s+${SSHKeyValue} -> Record - -EOF diff --git a/test/nxos_ssh/utils/textfsm_templates b/test/nxos_ssh/utils/textfsm_templates new file mode 120000 index 000000000..3efd0231f --- /dev/null +++ b/test/nxos_ssh/utils/textfsm_templates @@ -0,0 +1 @@ +../../../napalm/nxos_ssh/utils/textfsm_templates \ No newline at end of file diff --git a/test/nxos_ssh/utils/textfsm_templates/lldp_neighbors.tpl b/test/nxos_ssh/utils/textfsm_templates/lldp_neighbors.tpl deleted file mode 100644 index 77f55ad2a..000000000 --- a/test/nxos_ssh/utils/textfsm_templates/lldp_neighbors.tpl +++ /dev/null @@ -1,9 +0,0 @@ -Value NEIGHBOR (\S+) -Value LOCAL_INTERFACE (\S+) -Value NEIGHBOR_INTERFACE (\S+) - -Start - ^Device.*ID -> LLDP - -LLDP - ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+[\w+\s]+\S+\s+${NEIGHBOR_INTERFACE} -> Record diff --git a/test/nxos_ssh/utils/textfsm_templates/snmp_config.tpl b/test/nxos_ssh/utils/textfsm_templates/snmp_config.tpl deleted file mode 100644 index aa070fd53..000000000 --- a/test/nxos_ssh/utils/textfsm_templates/snmp_config.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Value Location (.*) -Value Contact (.*) -Value Community (\S+) -Value Mode (network\-admin|network\-operator) -Value ACL (\S+) - -Start - ^snmp-server\slocation\s${Location} -> Record - ^snmp-server\scontact\s${Contact} -> Record - ^snmp-server\scommunity\s${Community}\s((group\s+${Mode}|use\-.+\s+${ACL})) -> Next.Record diff --git a/test/nxos_ssh/utils/textfsm_templates/users.tpl b/test/nxos_ssh/utils/textfsm_templates/users.tpl deleted file mode 100644 index 141fd5df3..000000000 --- a/test/nxos_ssh/utils/textfsm_templates/users.tpl +++ /dev/null @@ -1,13 +0,0 @@ -Value Username (\w+.*) -Value Password (.*) -Value Role (\w+.*) -Value SSHKeyType (ssh-rsa|ssh-dsa) -Value SSHKeyValue (\w+.*) - - -Start - ^username\s+${Username}\s+password\s+\d+\s+${Password}\s+role\s+${Role} -> Record - ^username\s+${Username}\s+role\s+${Role} -> Record - ^username\s+${Username}\s+sshkey\s+${SSHKeyType}\s+${SSHKeyValue} -> Record - -EOF