Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mikrotik routeros ipv6 neighbor print #1146

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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"