Skip to content
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

Match multiple values on a single line #18

Open
zhangineer2 opened this issue Feb 10, 2025 · 0 comments
Open

Match multiple values on a single line #18

zhangineer2 opened this issue Feb 10, 2025 · 0 comments

Comments

@zhangineer2
Copy link

zhangineer2 commented Feb 10, 2025

I would like to match multiple values from the same line, instead of iterating over and over of the same interface object

For example I have the following configurations. for the config line of ip address 192.168.10.254/24 tag 12345 I would need to run the re_match_iter_type() twice to find the IP and the tag for it since only one value is returned. is it possible to return multiple match groups ?

interface Vlan10
  description This is my interface for vlan10
  no shutdown
  vrf member tenant1
  no ip redirects
  ip address 192.168.10.254/24 tag 12345
  no ipv6 redirects
  fabric forwarding mode anycast-gateway
  ip dhcp relay address 99.99.99.99 use-vrf default
  ip dhcp relay address 100.100.100.100 use-vrf default
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

No branches or pull requests

1 participant