Skip to content

fix: parse RouterOS 7 interface print terse output - #2345

Open
bile0026 wants to merge 2 commits into
networktocode:masterfrom
bile0026:fix_mikrotik_interface_parsing
Open

fix: parse RouterOS 7 interface print terse output#2345
bile0026 wants to merge 2 commits into
networktocode:masterfrom
bile0026:fix_mikrotik_interface_parsing

Conversation

@bile0026

Copy link
Copy Markdown

Updates mikrotik_routeros_interface_print_terse_without-paging.textfsm, so it parses output from newer RouterOS versions instead of erroring:

Skip the Flags: and Columns: header lines that RouterOS 7 emits before the interface rows (previously these hit ^. -> Error).
Add three new optional values captured from the interface rows: IFNAME, IFINDEX, and INTERFACE_ID (from ifname=, ifindex=, and id=).
Add a trailing (\s+\S+=\S+)* catch-all so any additional unmodeled key=value attributes don't fail the match.
All new values are optional, so existing output continues to parse unchanged.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@bile0026 bile0026 changed the title fix: 🐛 handle interfaces as a list fix: parse RouterOS 7 interface print terse output Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant