diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 65ef99bcd5..1596d0fed2 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -740,14 +740,19 @@ mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active oneaccess_oneos_show_cellular-radio_equipment.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] equipment oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call any all -oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context +oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_ip_as-path-access-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip as-path-access-list +oneaccess_oneos_show_ip_interface_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip int[[erface]] brief oneaccess_oneos_show_ip_access-lists.textfsm, .*, oneaccess_oneos, sh[[ow]] ip access-lists[[s]] -oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf +oneaccess_oneos_show_ip_bgp_summary.textfsm, .*, oneaccess_oneos, sh[[ow]] ip bgp summary +oneaccess_oneos_show_ip_prefix-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip prefix-list +oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] +oneaccess_oneos_show_ip_vrf_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip vrf brief oneaccess_oneos_show_interfaces.textfsm, .*, oneaccess_oneos, sh[[ow]] interface[[s]] oneaccess_oneos_show_helpers.textfsm, .*, oneaccess_oneos, sh[[ow]] helpers +oneaccess_oneos_show_ip_ssh.textfsm, .*, oneaccess_oneos, sh[[ow]] ip ssh oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.* diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm new file mode 100644 index 0000000000..7c284e8d2d --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm @@ -0,0 +1,34 @@ +Value Filldown,Required ROUTER_ID ([0-9a-f:\.]+) +Value Filldown LOCAL_AS (\d+(\.\d+)?) +Value Filldown VRF (\w+) +Value Filldown RIB_ENTRIES (\d+) +Value Filldown RIB_MEMORY (\d+\s\S+) +Value Filldown PEERS (\d+) +Value Filldown BGP_MEMORY (\d+\s\S+) +Value Filldown AS_PATH_ENTRIES (\d+) +Value Filldown COMMUNTIY_ENTRIES (\d+) +Value BGP_NEIGHBOR (\d+\.\d+\.\d+\.\d+) +Value ADDRESS_FAMILY (\d+) +Value NEIGHBOR_AS (\d+) +Value MESSAGE_RECEIVED (\d+) +Value MESSAGE_SENT (\d+) +Value TABLE_VERSION (\d+) +Value IN_QUEUE (\d+) +Value OUT_QUEUE (\d+) +Value UP_DOWN (\S+?) +Value STATE_PREFIX_RECEIVED (\S+\s+\S+|\S+) +Value Fillup TOTAL_NEIGHBORS (\d+) + +Start + ^BGP\srouter\sidentifier\s${ROUTER_ID},\slocal\sAS\snumber\s${LOCAL_AS},?\s+vrf\s\(?${VRF}\)? + ^RIB\sentries\s${RIB_ENTRIES},\susing\s${RIB_MEMORY}\sof\smemory + ^Peers\s${PEERS},\susing\s${BGP_MEMORY}\sof\smemory + ^${AS_PATH_ENTRIES}\sBGP\sAS-PATH\sentries + ^${COMMUNTIY_ENTRIES}\sBGP\scommunity\sentries + ^Neighbor\s+V\s+AS\s+MsgRcvd\s+MsgSent\s+TblVer\s+InQ\s+OutQ\s+Up/Down\s+State/PfxRcd\s*$$ + ^${BGP_NEIGHBOR}\s+${ADDRESS_FAMILY}\s+${NEIGHBOR_AS}\s+${MESSAGE_RECEIVED}\s+${MESSAGE_SENT}\s+${TABLE_VERSION}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PREFIX_RECEIVED} -> Record + ^Total\snumber\sof\sneighbors\s${TOTAL_NEIGHBORS} + ^\s*$$ + ^. -> Error + +EOF diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm new file mode 100644 index 0000000000..b1fc09d9ef --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm @@ -0,0 +1,12 @@ +Value INTERFACE (\S+(?:\s\S+)?) +Value IP_ADDRESS (\S+) +Value OK (YES|NO|Yes|No|yes|no) +Value STATUS (up|down|administratively down) +Value PROTOCOL (up|down) +Value DESCRIPTION (.*?) + +Start + ^Interface\s+IP[-\s]Address\s+OK\?\s+Status\s+Protocol\s+Description\s*$$ + ^${INTERFACE}\s+${IP_ADDRESS}\s+${OK}\s+${STATUS}\s+${PROTOCOL}\s+${DESCRIPTION}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm new file mode 100644 index 0000000000..3beb97c137 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm @@ -0,0 +1,16 @@ +Value Required,Filldown PROTOCOL (\S+) +Value Required,Filldown NAME (\S+) +Value Filldown DESCRIPTION (.*) +Value Required SEQUENCE (\d+) +Value ACTION (\S+) +Value NETWORK ([0-9a-f:\.]+|any) +Value NETMASK (\d+) +Value LE (\d+) +Value GE (\d+) + +Start + ^${PROTOCOL}:\sip\s+prefix-list\s+${NAME} + ^\s+Description:\s${DESCRIPTION} + ^\s+seq\s+${SEQUENCE}\s+${ACTION}\s+${NETWORK}(/${NETMASK}|)(?:\s+ge\s+${GE}|)(?:\s+le\s+${LE}|)\s*$$ -> Record + ^\s*$$ + ^.+ -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm new file mode 100644 index 0000000000..1298d168c5 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm @@ -0,0 +1,31 @@ +Value SSH (\S+) +Value SCP (\S+) +Value ENCRYPTION (ssh\-\S+|\S+) +Value BITS (\d+) +Value FINGERPRINT ([a-f0-9:]+) +Value MAX_SESSIONS (\d+) +Value MAX_CHANNELS_SESSION (\d+) +Value METHOD (\S+) +Value SESSION_TIMEOUT (\d+) +Value AUTH_TIMEOUT (\d+) +Value AUTH_RETRIES (\d+) + +Start + ^SSH\s${SSH} + ^SCP\sserver\s${SCP} + ^Authentication\s.ethod:?\s${METHOD} + ^Authentication\stimeout\s${AUTH_TIMEOUT}\ssecs,\sretries\s${AUTH_RETRIES} + ^Session\stimeout\s${SESSION_TIMEOUT}\ssecs + ^Maximum\snumber\sof\ssessions\s${MAX_SESSIONS} + ^Maximum\snumber\sof\schannels\sper\ssession\s${MAX_CHANNELS_SESSION} + ^Authorized\s+public\s+keys: + ^none + ^Key\sfingerprint -> FINGERPRINT + ^\s*$$ + ^. -> Error + +FINGERPRINT + ^${ENCRYPTION}\s${BITS}\s${FINGERPRINT}\s*$$ -> Start + ^${BITS}\sMD5:${FINGERPRINT}.*\s\(${ENCRYPTION}\)$$ -> Start + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm new file mode 100644 index 0000000000..e4ef0b24c6 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm @@ -0,0 +1,12 @@ +Value VRF (\w+) +Value VRF_ID (\d+) +Value List INTERFACES ([\w\-]+\s?[\w\/\.]+) + +Start + ^\s*VRF\s+Name\s+VRF\s+I[Dd]\s+Interfaces\s*$$ + ^\s?\w+\s+\d+ -> Continue.Record + ^\s?${VRF}?\s+${VRF_ID}\s+${INTERFACES}$$ + ^\s?${VRF}?\s+${VRF_ID}\s*$$ + ^\s+${INTERFACES}$$ + ^\s*$$ + ^. -> Error diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw new file mode 100644 index 0000000000..4898598f52 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw @@ -0,0 +1,8 @@ +BGP router identifier 194.5.12.148, local AS number 65000, vrf (null) +6 BGP AS-PATH entries +0 BGP community entries + +Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd +194.5.163.29 4 14737 13360 12237 34 0 0 4d05h57m 28 + +Total number of neighbors 1 diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml new file mode 100644 index 0000000000..4028770603 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - router_id: "194.5.12.148" + local_as: "65000" + vrf: "null" + rib_entries: "" + rib_memory: "" + peers: "" + bgp_memory: "" + as_path_entries: "6" + communtiy_entries: "0" + bgp_neighbor: "194.5.163.29" + address_family: "4" + neighbor_as: "14737" + message_received: "13360" + message_sent: "12237" + table_version: "34" + in_queue: "0" + out_queue: "0" + up_down: "4d05h57m" + state_prefix_received: "28" + total_neighbors: "1" diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw new file mode 100644 index 0000000000..b12bc87083 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw @@ -0,0 +1,9 @@ +BGP router identifier 1.105.35.17, local AS number 65000 vrf default +RIB entries 1493, using 105 KiB of memory +Peers 2, using 5128 bytes of memory + +Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd +192.4.21.254 4 61400 38962 26256 78123 0 0 20:35:48 881 +192.4.91.254 4 61400 38876 26260 78123 0 0 20:35:48 881 + +Total number of neighbors 2 diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml new file mode 100644 index 0000000000..cea8e23d45 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml @@ -0,0 +1,42 @@ +--- +parsed_sample: + - router_id: "1.105.35.17" + local_as: "65000" + vrf: "default" + rib_entries: "1493" + rib_memory: "105 KiB" + peers: "2" + bgp_memory: "5128 bytes" + as_path_entries: "" + communtiy_entries: "" + bgp_neighbor: "192.4.21.254" + address_family: "4" + neighbor_as: "61400" + message_received: "38962" + message_sent: "26256" + table_version: "78123" + in_queue: "0" + out_queue: "0" + up_down: "20:35:48" + state_prefix_received: "881" + total_neighbors: "2" + - router_id: "1.105.35.17" + local_as: "65000" + vrf: "default" + rib_entries: "1493" + rib_memory: "105 KiB" + peers: "2" + bgp_memory: "5128 bytes" + as_path_entries: "" + communtiy_entries: "" + bgp_neighbor: "192.4.91.254" + address_family: "4" + neighbor_as: "61400" + message_received: "38876" + message_sent: "26260" + table_version: "78123" + in_queue: "0" + out_queue: "0" + up_down: "20:35:48" + state_prefix_received: "881" + total_neighbors: "2" diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw new file mode 100644 index 0000000000..045be80d64 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw @@ -0,0 +1,21 @@ +Interface IP-Address OK? Status Protocol Description +GigabitEthernet 0/0 YES up up *** PBXPLUG 212 - BACKUP TEST - 94.105.1.119 *** +GigabitEthernet 0/1 YES up up *** PBXPLUG 401 - BACKUP TEST - 94.105.34.2 *** +GigabitEthernet 0/2 YES up down *IPERF* +GigabitEthernet 0/3 YES up down +FastEthernet 1/0 YES up up *** WAN INTERFACE *** +FastEthernet 1/0.1 192.168.1.2 YES up up *** management A-modem (modem ip = 192.168.1.1) *** +FastEthernet 1/0.10 YES up up *** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503941 *** +Dialer 1 94.105.163.30 YES up up *** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503941 +Dialer 2 NO administratively down down *** VT108085 - GS20190640686 - CI - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *** +Dialer 3 94.104.254.138 YES up up *** DATA VDSL shared VLAN - GSID0004_MAIN - CI TEST - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 500000*** +Loopback 0 127.0.0.1 YES up up +Loopback 1 94.105.12.148 YES up up *** VT096910 - GS20170330107 *** +Loopback 777 94.107.245.249 YES up up +Bvi 10 192.168.10.1 YES up up *** VT108085 - GS20190640686 - CI ACCESS *** +Bvi 100 192.168.100.1 YES up up *** TEST MAARTEN - BACKUP SCRIPT PBXPLUG *** +Bvi 200 94.105.16.129 YES up down *IPERF* +dot11radio 0/0.1 YES up up +dot11radio 0/0.2 YES up up +Null 0 YES up up +dot11radio 0/0 YES up up diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml new file mode 100644 index 0000000000..8f5ca00c60 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml @@ -0,0 +1,126 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** PBXPLUG 212 - BACKUP TEST - 94.105.1.119 ***" + - interface: "GigabitEthernet 0/1" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** PBXPLUG 401 - BACKUP TEST - 94.105.34.2 ***" + - interface: "GigabitEthernet 0/2" + ip_address: "" + ok: "YES" + status: "up" + protocol: "down" + description: "*IPERF*" + - interface: "GigabitEthernet 0/3" + ip_address: "" + ok: "YES" + status: "up" + protocol: "down" + description: "" + - interface: "FastEthernet 1/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** WAN INTERFACE ***" + - interface: "FastEthernet 1/0.1" + ip_address: "192.168.1.2" + ok: "YES" + status: "up" + protocol: "up" + description: "*** management A-modem (modem ip = 192.168.1.1) ***" + - interface: "FastEthernet 1/0.10" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503941 ***" + - interface: "Dialer 1" + ip_address: "94.105.163.30" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503941" + - interface: "Dialer 2" + ip_address: "" + ok: "NO" + status: "administratively down" + protocol: "down" + description: "*** VT108085 - GS20190640686 - CI - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - LOOPBACK 503899 ***" + - interface: "Dialer 3" + ip_address: "94.104.254.138" + ok: "YES" + status: "up" + protocol: "up" + description: "*** DATA VDSL shared VLAN - GSID0004_MAIN - CI TEST - NOS-EMLP-01/ANT-EMLP-01\ + \ - LOOPBACK 500000***" + - interface: "Loopback 0" + ip_address: "127.0.0.1" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 1" + ip_address: "94.105.12.148" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 ***" + - interface: "Loopback 777" + ip_address: "94.107.245.249" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Bvi 10" + ip_address: "192.168.10.1" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT108085 - GS20190640686 - CI ACCESS ***" + - interface: "Bvi 100" + ip_address: "192.168.100.1" + ok: "YES" + status: "up" + protocol: "up" + description: "*** TEST MAARTEN - BACKUP SCRIPT PBXPLUG ***" + - interface: "Bvi 200" + ip_address: "94.105.16.129" + ok: "YES" + status: "up" + protocol: "down" + description: "*IPERF*" + - interface: "dot11radio 0/0.1" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "dot11radio 0/0.2" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Null 0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "dot11radio 0/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw new file mode 100644 index 0000000000..a99e1c1e3d --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw @@ -0,0 +1,22 @@ +Interface IP-Address OK? Status Protocol Description +GigabitEthernet 0/0 94.107.208.169 Yes up down *** LAN INTERFACE *** +GigabitEthernet 0/1 20.20.20.1 Yes up up *** LAB_C891F - GigabitEthernet0 *** +GigabitEthernet 0/2 Yes up down +GigabitEthernet 0/3 10.100.1.254 Yes up up TO LBB156 +GigabitEthernet 1/0 Yes up down *** WAN INTERFACE *** +GigabitEthernet 1/0.1 Yes up down +GigabitEthernet 1/0.10 No administratively down down +GigabitEthernet 1/0.200 Yes up down * VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 * +GigabitEthernet 1/0.300 No administratively down down * VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503210 * +Bvi 300 94.107.224.226 Yes up down +Virtual-Ethernet 1 10.94.50.22 Yes up up * Mobile access 4G - UNTRUST - CORPORATE INTERNET - 4G * +Null 0 Yes up up Null 0 +Loopback 0 Yes up up +Loopback 1 94.105.9.192 Yes up up +Loopback 21 192.4.21.238 Yes up up *** Mobile access 4G - BGP PEER LOOPBACK ANT *** +Loopback 91 192.4.91.238 Yes up up *** Mobile access 4G - BGP PEER LOOPBACK NOS *** +Tunnel 21 94.105.9.192 Yes up up GRE tunnel to ANT-IPSEC-02 - NO IPSEC +Tunnel 91 94.105.9.192 Yes up up GRE tunnel to NOS-IPSEC-02 +Dialer 1 Yes up down * VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 * +Dialer 3 No administratively down down * VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503210 * +Dialer 32 Yes up down diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml new file mode 100644 index 0000000000..4c3558382e --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml @@ -0,0 +1,132 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + ip_address: "94.107.208.169" + ok: "Yes" + status: "up" + protocol: "down" + description: "*** LAN INTERFACE ***" + - interface: "GigabitEthernet 0/1" + ip_address: "20.20.20.1" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** LAB_C891F - GigabitEthernet0 ***" + - interface: "GigabitEthernet 0/2" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "GigabitEthernet 0/3" + ip_address: "10.100.1.254" + ok: "Yes" + status: "up" + protocol: "up" + description: "TO LBB156" + - interface: "GigabitEthernet 1/0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "*** WAN INTERFACE ***" + - interface: "GigabitEthernet 1/0.1" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "GigabitEthernet 1/0.10" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "" + - interface: "GigabitEthernet 1/0.200" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "* VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN\ + \ - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *" + - interface: "GigabitEthernet 1/0.300" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "* VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503210 *" + - interface: "Bvi 300" + ip_address: "94.107.224.226" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "Virtual-Ethernet 1" + ip_address: "10.94.50.22" + ok: "Yes" + status: "up" + protocol: "up" + description: "* Mobile access 4G - UNTRUST - CORPORATE INTERNET - 4G *" + - interface: "Null 0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "up" + description: "Null 0" + - interface: "Loopback 0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 1" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 21" + ip_address: "192.4.21.238" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** Mobile access 4G - BGP PEER LOOPBACK ANT ***" + - interface: "Loopback 91" + ip_address: "192.4.91.238" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** Mobile access 4G - BGP PEER LOOPBACK NOS ***" + - interface: "Tunnel 21" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "GRE tunnel to ANT-IPSEC-02 - NO IPSEC" + - interface: "Tunnel 91" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "GRE tunnel to NOS-IPSEC-02" + - interface: "Dialer 1" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "* VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN\ + \ - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *" + - interface: "Dialer 3" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "* VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503210 *" + - interface: "Dialer 32" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw new file mode 100644 index 0000000000..fea365807a --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw @@ -0,0 +1,15 @@ +RIP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +OSPF: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +BGP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml new file mode 100644 index 0000000000..46e2515577 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml @@ -0,0 +1,83 @@ +--- +parsed_sample: + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw new file mode 100644 index 0000000000..fea365807a --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw @@ -0,0 +1,15 @@ +RIP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +OSPF: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +BGP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml new file mode 100644 index 0000000000..46e2515577 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml @@ -0,0 +1,83 @@ +--- +parsed_sample: + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw new file mode 100644 index 0000000000..f805882468 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw @@ -0,0 +1,11 @@ +SSH Enabled +Authentication timeout 30 secs, retries 3 +Session timeout 900 secs +Authentication method: all +Maximum number of sessions 5 +Maximum number of channels per session 10 +Authorized public keys: +none +Key fingerprint: +ssh-rsa 4096 bc:f8:c3:67:8f:de:f3:ec:5c:29:b5:a4:e4:25:de:7a +SCP server enabled diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml new file mode 100644 index 0000000000..2244fc3619 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - ssh: "Enabled" + scp: "enabled" + encryption: "ssh-rsa" + bits: "4096" + fingerprint: "bc:f8:c3:67:8f:de:f3:ec:5c:29:b5:a4:e4:25:de:7a" + max_sessions: "5" + max_channels_session: "10" + method: "all" + session_timeout: "900" + auth_timeout: "30" + auth_retries: "3" diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw new file mode 100644 index 0000000000..b7f7730664 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw @@ -0,0 +1,11 @@ +SSH Enabled +Authentication timeout 30 secs, retries 3 +Session timeout 900 secs +Authentication Method all +Maximum number of sessions 5 +Maximum number of channels per session 10 +Authorized public keys: +none +Key fingerprint: +4096 MD5:5e:70:36:5a:20:93:14:18:93:04:03:df:f0:72:f4:fc root@euroshoe01-12ton-03 (RSA) +SCP server disabled diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml new file mode 100644 index 0000000000..c519fbb738 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - ssh: "Enabled" + scp: "disabled" + encryption: "RSA" + bits: "4096" + fingerprint: "5e:70:36:5a:20:93:14:18:93:04:03:df:f0:72:f4:fc" + max_sessions: "5" + max_channels_session: "10" + method: "all" + session_timeout: "900" + auth_timeout: "30" + auth_retries: "3" diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw new file mode 100644 index 0000000000..5a101b499b --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw @@ -0,0 +1,7 @@ + VRF Name VRF Id Interfaces + MODEM 1 FastEthernet 1/0.1 + INTERNET 2 Dialer 2 + Dialer 3 + Loopback 777 + Bvi 10 + TEST 3 diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml new file mode 100644 index 0000000000..60a8e0587e --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml @@ -0,0 +1,16 @@ +--- +parsed_sample: + - vrf: "MODEM" + vrf_id: "1" + interfaces: + - "FastEthernet 1/0.1" + - vrf: "INTERNET" + vrf_id: "2" + interfaces: + - "Dialer 2" + - "Dialer 3" + - "Loopback 777" + - "Bvi 10" + - vrf: "TEST" + vrf_id: "3" + interfaces: [] diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw new file mode 100644 index 0000000000..f5fe34bc04 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw @@ -0,0 +1,8 @@ +AUTO_PROVISIONING_0001 5 Dialer 32 +CORPORATE_INTERNET_0001 3 GigabitEthernet 0/0 +MODEM 4 GigabitEthernet 1/0.1 +O_SWOPS_LAB_0001 6 Dialer 3 +TRUST 7 +UNTRUST 2 GigabitEthernet 0/1 + Virtual-Ethernet 1 +Yavuz 8 diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml new file mode 100644 index 0000000000..6ca7c26784 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml @@ -0,0 +1,29 @@ +--- +parsed_sample: + - vrf: "AUTO_PROVISIONING_0001" + vrf_id: "5" + interfaces: + - "Dialer 32" + - vrf: "CORPORATE_INTERNET_0001" + vrf_id: "3" + interfaces: + - "GigabitEthernet 0/0" + - vrf: "MODEM" + vrf_id: "4" + interfaces: + - "GigabitEthernet 1/0.1" + - vrf: "O_SWOPS_LAB_0001" + vrf_id: "6" + interfaces: + - "Dialer 3" + - vrf: "TRUST" + vrf_id: "7" + interfaces: [] + - vrf: "UNTRUST" + vrf_id: "2" + interfaces: + - "GigabitEthernet 0/1" + - "Virtual-Ethernet 1" + - vrf: "Yavuz" + vrf_id: "8" + interfaces: []