-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Mikrotik interface bonding print detail (#1870)
- Loading branch information
Showing
8 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ntc_templates/templates/mikrotik_routeros_interface_bonding_print_detail.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Value Required ID (\d+) | ||
Value STATUS (X|R) | ||
Value NAME (\S+) | ||
Value SLAVES (\S+(?:,)?) | ||
Value List DESCRIPTION (.+?) | ||
Value MODE (\S+) | ||
|
||
Start | ||
^\s*Flags:\s*X\s*-\s*disabled(?:;|,)\s*R\s*-\s*running\s*$$ -> Interface | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Interface | ||
^\s*\d+\s*(?:X|R)?\s*$$ -> Continue.Record | ||
^\s*${ID}\s*${STATUS}\s*name="${NAME}"\s*mtu=\d+\s*mac-address=([a-zA-Z0-9]{2}(?::[a-zA-Z0-9]{2}){5})\s*arp=\S+\s*arp-timeout=\S+\s*slaves=${SLAVES}\s*mode=${MODE}\s*primary=\S+\s*link-monitoring=\S+\s*arp-interval=(?:\d+ms)\s*arp-ip-targets=\S+\s*mii-interval=(?:\d+ms)\s*down-delay=(?:\d+ms)\s*up-delay=(?:\d+ms)\s*lacp-rate=(?:\d+sec(?:s)?)\s*transmit-hash-policy=\S+\s*min-links=\d+\s*$$ | ||
^\s*name="${NAME}"\s*mtu=\d+\s*mac-address=([a-zA-Z0-9]{2}(?::[a-zA-Z0-9]{2}){5})\s*arp=\S+\s*arp-timeout=\S+\s*slaves=${SLAVES}\s*mode=${MODE}\s*primary=\S+\s*link-monitoring=\S+\s*arp-interval=(?:\d+ms)\s*arp-ip-targets=\S+\s*mii-interval=(?:\d+ms)\s*down-delay=(?:\d+ms)\s*up-delay=(?:\d+ms)\s*lacp-rate=(?:\d+sec(?:s)?)\s*transmit-hash-policy=\S+\s*min-links=\d+\s*$$ | ||
^\s*${ID}\s*${STATUS}\s*;{3}\s*${DESCRIPTION}\s*$$ | ||
^\s*${DESCRIPTION}\s*$$ | ||
^\s*$$ | ||
^. -> Error |
3 changes: 3 additions & 0 deletions
3
...teros/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Flags: X - disabled, R - running | ||
0 R ;;; To Cisco Te1/3 - Te1/4 | ||
name="bond1" mtu=9000 mac-address=4C:5E:0C:14:3F:9D arp=enabled arp-timeout=auto slaves=sfp-sfpplus7,sfp-sfpplus8 mode=802.3ad primary=none link-monitoring=mii arp-interval=100ms arp-ip-targets="" mii-interval=100ms down-delay=0ms up-delay=0ms lacp-rate=1sec transmit-hash-policy=layer-3-and-4 min-links=0 |
9 changes: 9 additions & 0 deletions
9
...teros/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
parsed_sample: | ||
- description: | ||
- "To Cisco Te1/3 - Te1/4" | ||
id: "0" | ||
mode: "802.3ad" | ||
name: "bond1" | ||
slaves: "sfp-sfpplus7,sfp-sfpplus8" | ||
status: "R" |
3 changes: 3 additions & 0 deletions
3
...os/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail_01.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Flags: X - disabled; R - running | ||
0 R ;;; Link to Mikrotik | ||
name="bond1" mtu=1500 mac-address=48:A9:8A:5D:24:05 arp=enabled arp-timeout=auto slaves=sfp-sfpplus9,sfp-sfpplus10 mode=802.3ad primary=none link-monitoring=mii arp-interval=100ms arp-ip-targets="" mii-interval=100ms down-delay=0ms up-delay=0ms lacp-rate=30secs transmit-hash-policy=layer-2 min-links=0 |
9 changes: 9 additions & 0 deletions
9
...os/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail_01.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
parsed_sample: | ||
- description: | ||
- "Link to Mikrotik" | ||
id: "0" | ||
mode: "802.3ad" | ||
name: "bond1" | ||
slaves: "sfp-sfpplus9,sfp-sfpplus10" | ||
status: "R" |
4 changes: 4 additions & 0 deletions
4
...os/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail_02.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Flags: X - disabled; R - running | ||
0 R ;;; Link to Mikrotik | ||
and other things | ||
name="bond1" mtu=1500 mac-address=48:A9:8A:5D:24:05 arp=enabled arp-timeout=auto slaves=sfp-sfpplus9,sfp-sfpplus10 mode=802.3ad primary=none link-monitoring=mii arp-interval=100ms arp-ip-targets="" mii-interval=100ms down-delay=0ms up-delay=0ms lacp-rate=30secs transmit-hash-policy=layer-2 min-links=0 |
10 changes: 10 additions & 0 deletions
10
...os/interface_bonding_print_detail/mikrotik_routeros_interface_bonding_print_detail_02.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
parsed_sample: | ||
- description: | ||
- "Link to Mikrotik" | ||
- "and other things" | ||
id: "0" | ||
mode: "802.3ad" | ||
name: "bond1" | ||
slaves: "sfp-sfpplus9,sfp-sfpplus10" | ||
status: "R" |