Skip to content

Commit

Permalink
Add Mikrotik routing ospf neighbor print template (#1496)
Browse files Browse the repository at this point in the history
Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”>
  • Loading branch information
PavloSkliarenko and pskliarenko authored Jul 22, 2024
1 parent c8729ec commit 44abe04
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm, .*, mikrotik_router
mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros, [[/]]log p[[rint]] d[[etail]] wi[[thout-paging]]
mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]]
mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging
mikrotik_routeros_routing_ospf_neighbor_print.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] o[[spf]] nei[[ghbor]] p[[rint]]
mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]]
mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]]
mikrotik_routeros_ip_neighbor_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip n[[eighbor]] p[[rint]] d[[etail]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value NEIGHBOR_ID (\S+)
Value PRIORITY (\d+)
Value STATE (\S+)
Value UP_TIME (\S+)
Value ADDRESS (\S+)
Value INTERFACE (\S+)

Start
^.*router-id=${NEIGHBOR_ID}.*address=${ADDRESS}.*interface=${INTERFACE}.*priority=${PRIORITY}.*state=\"${STATE}\".*adjacency=${UP_TIME}.*$$ -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0 instance=default router-id=89.188.172.2 address=89.188.172.81 interface=vlan68 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s

1 instance=default router-id=89.188.172.3 address=89.188.172.93 interface=vlan71 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
parsed_sample:
- address: "89.188.172.81"
interface: "vlan68"
neighbor_id: "89.188.172.2"
priority: "128"
state: "Full"
up_time: "7w5d8h40m21s"
- address: "89.188.172.93"
interface: "vlan71"
neighbor_id: "89.188.172.3"
priority: "128"
state: "Full"
up_time: "7w5d8h40m21s"

0 comments on commit 44abe04

Please # to comment.