diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index cd2cb1252d..c3132696fd 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -502,6 +502,7 @@ mikrotik_routeros_ip_dhcp-server_lease_print_without-paging.textfsm, .*, mikroti mikrotik_routeros_ip_firewall_nat_print_all_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall nat print all without-paging mikrotik_routeros_interface_ethernet_monitor_name_once.textfsm, .*, mikrotik_routeros, [[/]]interface ethernet monitor (\S+) once mikrotik_routeros_snmp_community_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]snmp community print without-paging +mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ipv6 neighbor print without-paging mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse diff --git a/ntc_templates/templates/mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm new file mode 100644 index 0000000000..392f263e84 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm @@ -0,0 +1,14 @@ +Value Key INDEX (\d+) +Value FLAGS ([R]+) +Value IP (\S+) +Value INTERFACE (\S+) +Value MAC ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}) +Value STATUS (noarp|incomplete|stale|reachable|delay|probe|failed) + +Start + ^Flags:.*$$ -> NeighborsTable + +NeighborsTable + ^\s*${INDEX}\s*(${FLAGS}\s+)?address=${IP}\s+interface=${INTERFACE}\s+(mac-address=${MAC}\s+)?status="${STATUS}"\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.raw b/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.raw new file mode 100644 index 0000000000..9fc1f6f946 --- /dev/null +++ b/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.raw @@ -0,0 +1,8 @@ +Flags: R - router + 0 address=ff02::5 interface=main mac-address=33:33:00:00:00:05 status="noarp" + + 1 address=ff02::1 interface=main mac-address=33:33:00:00:00:01 status="noarp" + + 2 R address=fe80::d7:4cff:fec1:2e32 interface=main mac-address=00:0C:42:28:79:45 status="stale" + + 3 address=2a05:c100:1d::351c interface=bridge-lan status="failed" diff --git a/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.yml b/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.yml new file mode 100644 index 0000000000..c279b2cb0e --- /dev/null +++ b/tests/mikrotik_routeros/ipv6_neighbor_print_without-paging/mikrotik_routeros_ipv6_neighbor_print_without-paging.yml @@ -0,0 +1,26 @@ +--- +parsed_sample: + - index: "0" + flags: "" + ip: "ff02::5" + interface: "main" + mac: "33:33:00:00:00:05" + status: "noarp" + - index: "1" + flags: "" + ip: "ff02::1" + interface: "main" + mac: "33:33:00:00:00:01" + status: "noarp" + - index: "2" + flags: "R" + ip: "fe80::d7:4cff:fec1:2e32" + interface: "main" + mac: "00:0C:42:28:79:45" + status: "stale" + - index: "3" + flags: "" + ip: "2a05:c100:1d::351c" + interface: "bridge-lan" + mac: "" + status: "failed"