-
Notifications
You must be signed in to change notification settings - Fork 789
Fix RouterOS 7 interface print terse #2345
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
Open
bile0026
wants to merge
4
commits into
networktocode:master
Choose a base branch
from
bile0026:fix_mikrotik_interface_parsing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
...ce_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging3.raw
This file contains hidden or 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,8 @@ | ||
| 0 S name=ether1 default-name=ether1 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=9214 mac-address=12:34:56:78:90:01 ifname=eth0 ifindex=8 id=1 link-downs=0 | ||
| 1 S name=ether2 default-name=ether2 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=9214 mac-address=12:34:56:78:90:02 ifname=eth1 ifindex=9 id=2 link-downs=0 | ||
| 2 S name=ether3 default-name=ether3 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=9214 mac-address=12:34:56:78:90:03 ifname=eth2 ifindex=10 id=3 link-downs=0 | ||
| 3 comment=temp uplink to peer name=ether4 default-name=ether4 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=9214 mac-address=12:34:56:78:90:04 ifname=eth3 ifindex=11 id=4 link-downs=0 | ||
| 4 R comment=uplink to internet name=ether5 default-name=ether5 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=9214 mac-address=12:34:56:78:90:05 ifname=eth4 ifindex=12 id=5 last-link-down-time=2026-08-18 07:20:12 last-link-up-time=2026-08-18 07:20:13 link-downs=5 | ||
| 5 RS name=wlan1 default-name=wlan1 type=wlan mtu=1500 actual-mtu=1500 l2mtu=1600 max-l2mtu=2290 mac-address=12:34:56:78:90:06 ifname=ath0 ifindex=13 id=6 last-link-up-time=2026-08-18 05:28:19 link-downs=0 | ||
| 6 RS name=wlan2 default-name=wlan2 type=wlan mtu=1500 actual-mtu=1500 l2mtu=1600 max-l2mtu=2290 mac-address=12:34:56:78:90:07 ifname=ath1 ifindex=14 id=7 last-link-up-time=2026-08-18 05:25:31 link-downs=0 | ||
| 7 R comment=defconf name=lan_bridge type=bridge mtu=auto actual-mtu=1500 l2mtu=1598 mac-address=12:34:56:78:90:01 ifname=br0 ifindex=6 id=8 last-link-up-time=2026-08-18 05:25:07 link-downs=0 |
170 changes: 170 additions & 0 deletions
170
...ce_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging3.yml
This file contains hidden or 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,170 @@ | ||
| --- | ||
| parsed_sample: | ||
| - actual_mtu: "1500" | ||
| comment: "" | ||
| default_name: "ether1" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "0" | ||
| interface_id: "1" | ||
| interface_index: "8" | ||
| interface_name: "eth0" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:01" | ||
| max_l2mtu: "9214" | ||
| mtu: "1500" | ||
| name: "ether1" | ||
| slave: "S" | ||
| status: "" | ||
| type: "ether" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "" | ||
| default_name: "ether2" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "1" | ||
| interface_id: "2" | ||
| interface_index: "9" | ||
| interface_name: "eth1" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:02" | ||
| max_l2mtu: "9214" | ||
| mtu: "1500" | ||
| name: "ether2" | ||
| slave: "S" | ||
| status: "" | ||
| type: "ether" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "" | ||
| default_name: "ether3" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "2" | ||
| interface_id: "3" | ||
| interface_index: "10" | ||
| interface_name: "eth2" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:03" | ||
| max_l2mtu: "9214" | ||
| mtu: "1500" | ||
| name: "ether3" | ||
| slave: "S" | ||
| status: "" | ||
| type: "ether" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "temp uplink to peer" | ||
| default_name: "ether4" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "3" | ||
| interface_id: "4" | ||
| interface_index: "11" | ||
| interface_name: "eth3" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:04" | ||
| max_l2mtu: "9214" | ||
| mtu: "1500" | ||
| name: "ether4" | ||
| slave: "" | ||
| status: "" | ||
| type: "ether" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "uplink to internet" | ||
| default_name: "ether5" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "4" | ||
| interface_id: "5" | ||
| interface_index: "12" | ||
| interface_name: "eth4" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "2026-08-18 07:20:12" | ||
| last_link_up_time: "2026-08-18 07:20:13" | ||
| link_downs: "5" | ||
| mac_address: "12:34:56:78:90:05" | ||
| max_l2mtu: "9214" | ||
| mtu: "1500" | ||
| name: "ether5" | ||
| slave: "" | ||
| status: "R" | ||
| type: "ether" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "" | ||
| default_name: "wlan1" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "5" | ||
| interface_id: "6" | ||
| interface_index: "13" | ||
| interface_name: "ath0" | ||
| l2mtu: "1600" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "2026-08-18 05:28:19" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:06" | ||
| max_l2mtu: "2290" | ||
| mtu: "1500" | ||
| name: "wlan1" | ||
| slave: "S" | ||
| status: "R" | ||
| type: "wlan" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "" | ||
| default_name: "wlan2" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "6" | ||
| interface_id: "7" | ||
| interface_index: "14" | ||
| interface_name: "ath1" | ||
| l2mtu: "1600" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "2026-08-18 05:25:31" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:07" | ||
| max_l2mtu: "2290" | ||
| mtu: "1500" | ||
| name: "wlan2" | ||
| slave: "S" | ||
| status: "R" | ||
| type: "wlan" | ||
| vrf: "" | ||
| - actual_mtu: "1500" | ||
| comment: "defconf" | ||
| default_name: "" | ||
| dynamic: "" | ||
| fast_path: "" | ||
| id: "7" | ||
| interface_id: "8" | ||
| interface_index: "6" | ||
| interface_name: "br0" | ||
| l2mtu: "1598" | ||
| last_link_down_time: "" | ||
| last_link_up_time: "2026-08-18 05:25:07" | ||
| link_downs: "0" | ||
| mac_address: "12:34:56:78:90:01" | ||
| max_l2mtu: "" | ||
| mtu: "auto" | ||
| name: "lan_bridge" | ||
| slave: "" | ||
| status: "R" | ||
| type: "bridge" | ||
| vrf: "" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bile0026
Is this terse output since it contains "flags" and "columns" lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still working some of this out. I believe there might be different results based on the type of device or the version of routeros. Trying to narrow this down.