-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MikroTik RouterOS 'interface print terse without-paging' template (#1515
- Loading branch information
1 parent
9f0ef71
commit 65de0e1
Showing
4 changed files
with
194 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
21 changes: 21 additions & 0 deletions
21
ntc_templates/templates/mikrotik_routeros_interface_print_terse_without-paging.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,21 @@ | ||
Value ID (\d+) | ||
Value DYNAMIC (D) | ||
Value STATUS (X|R) | ||
Value SLAVE (S) | ||
Value COMMENT (.*) | ||
Value NAME (\S+) | ||
Value DEFAULT_NAME (\S+) | ||
Value TYPE (\S+) | ||
Value MTU (\d+|auto) | ||
Value ACTUAL_MTU (\d+) | ||
Value L2MTU (\d+|auto) | ||
Value MAX_L2MTU (\d+) | ||
Value MAC_ADDRESS ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) | ||
Value LAST_LINK_DOWN_TIME ([a-z]{3}\/\d+\/\d+\s\d+\:\d+\:\d+) | ||
Value LAST_LINK_UP_TIME ([a-z]{3}\/\d+\/\d+\s\d+\:\d+\:\d+) | ||
Value LINK_DOWNS (\d+) | ||
|
||
Start | ||
^\s*${ID}\s+(?:${DYNAMIC})?(?:${STATUS}|\s)?(?:${SLAVE})?\s+(comment=${COMMENT}\s+)?name=${NAME}(\s+default-name=${DEFAULT_NAME})?\s+type=${TYPE}(\s+mtu=${MTU})?(\s+actual-mtu=${ACTUAL_MTU})?(\s+l2mtu=${L2MTU})?(\s+max-l2mtu=${MAX_L2MTU})?(\s+mac-address=${MAC_ADDRESS})?(\s+last-link-down-time=${LAST_LINK_DOWN_TIME})?(\s+last-link-up-time=${LAST_LINK_UP_TIME})?(\s+link-downs=${LINK_DOWNS})?\s*$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
10 changes: 10 additions & 0 deletions
10
...ace_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.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,10 @@ | ||
0 D name=ether1 default-name=ether1 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AA last-link-up-time=aug/16/1970 13:05:43 link-downs=0 | ||
1 DR name=ether2_UniFi2 default-name=ether2 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AB last-link-down-time=aug/17/1970 13:33:01 last-link-up-time=aug/17/1970 13:23:11 link-downs=3 | ||
2 name=ether3_UniFi1 default-name=ether3 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AC link-downs=0 | ||
3 R name=bridge-VLAN1 type=bridge mtu=auto actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:AD last-link-up-time=aug/16/1970 13:05:35 link-downs=0 | ||
4 X name=bridge-VLAN2 type=bridge mac-address=12:34:56:78:90:AE link-downs=0 | ||
5 S name=eth3_vlan1 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:AF last-link-down-time=aug/17/1970 13:33:01 last-link-up-time=aug/17/1970 13:23:11 link-downs=3 | ||
6 S name=eth4_vlan2 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:BA link-downs=0 | ||
7 RS name=eth4_vlan3 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:BB link-downs=0 | ||
8 D S name=eth4_vlan4 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:BC link-downs=0 | ||
9 DXS name=eth5_vlan5 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:BD last-link-up-time=aug/16/1970 13:05:43 link-downs=0 |
162 changes: 162 additions & 0 deletions
162
...ace_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.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,162 @@ | ||
--- | ||
parsed_sample: | ||
- id: "0" | ||
dynamic: "D" | ||
status: "" | ||
slave: "" | ||
comment: "" | ||
name: "ether1" | ||
default_name: "ether1" | ||
type: "ether" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1598" | ||
max_l2mtu: "2028" | ||
mac_address: "12:34:56:78:90:AA" | ||
last_link_down_time: "" | ||
last_link_up_time: "aug/16/1970 13:05:43" | ||
link_downs: "0" | ||
- id: "1" | ||
dynamic: "D" | ||
status: "R" | ||
slave: "" | ||
comment: "" | ||
name: "ether2_UniFi2" | ||
default_name: "ether2" | ||
type: "ether" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1598" | ||
max_l2mtu: "2028" | ||
mac_address: "12:34:56:78:90:AB" | ||
last_link_down_time: "aug/17/1970 13:33:01" | ||
last_link_up_time: "aug/17/1970 13:23:11" | ||
link_downs: "3" | ||
- id: "2" | ||
dynamic: "" | ||
status: "" | ||
slave: "" | ||
comment: "" | ||
name: "ether3_UniFi1" | ||
default_name: "ether3" | ||
type: "ether" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1598" | ||
max_l2mtu: "2028" | ||
mac_address: "12:34:56:78:90:AC" | ||
last_link_down_time: "" | ||
last_link_up_time: "" | ||
link_downs: "0" | ||
- id: "3" | ||
dynamic: "" | ||
status: "R" | ||
slave: "" | ||
comment: "" | ||
name: "bridge-VLAN1" | ||
default_name: "" | ||
type: "bridge" | ||
mtu: "auto" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:AD" | ||
last_link_down_time: "" | ||
last_link_up_time: "aug/16/1970 13:05:35" | ||
link_downs: "0" | ||
- id: "4" | ||
dynamic: "" | ||
status: "X" | ||
slave: "" | ||
comment: "" | ||
name: "bridge-VLAN2" | ||
default_name: "" | ||
type: "bridge" | ||
mtu: "" | ||
actual_mtu: "" | ||
l2mtu: "" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:AE" | ||
last_link_down_time: "" | ||
last_link_up_time: "" | ||
link_downs: "0" | ||
- id: "5" | ||
dynamic: "" | ||
status: "" | ||
slave: "S" | ||
comment: "" | ||
name: "eth3_vlan1" | ||
default_name: "" | ||
type: "vlan" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:AF" | ||
last_link_down_time: "aug/17/1970 13:33:01" | ||
last_link_up_time: "aug/17/1970 13:23:11" | ||
link_downs: "3" | ||
- id: "6" | ||
dynamic: "" | ||
status: "" | ||
slave: "S" | ||
comment: "" | ||
name: "eth4_vlan2" | ||
default_name: "" | ||
type: "vlan" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:BA" | ||
last_link_down_time: "" | ||
last_link_up_time: "" | ||
link_downs: "0" | ||
- id: "7" | ||
dynamic: "" | ||
status: "R" | ||
slave: "S" | ||
comment: "" | ||
name: "eth4_vlan3" | ||
default_name: "" | ||
type: "vlan" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:BB" | ||
last_link_down_time: "" | ||
last_link_up_time: "" | ||
link_downs: "0" | ||
- id: "8" | ||
dynamic: "D" | ||
status: "" | ||
slave: "S" | ||
comment: "" | ||
name: "eth4_vlan4" | ||
default_name: "" | ||
type: "vlan" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:BC" | ||
last_link_down_time: "" | ||
last_link_up_time: "" | ||
link_downs: "0" | ||
- id: "9" | ||
dynamic: "D" | ||
status: "X" | ||
slave: "S" | ||
comment: "" | ||
name: "eth5_vlan5" | ||
default_name: "" | ||
type: "vlan" | ||
mtu: "1500" | ||
actual_mtu: "1500" | ||
l2mtu: "1594" | ||
max_l2mtu: "" | ||
mac_address: "12:34:56:78:90:BD" | ||
last_link_down_time: "" | ||
last_link_up_time: "aug/16/1970 13:05:43" | ||
link_downs: "0" |