XMC Governance regex flags
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-11-2019 10:09 PM
Hi,
I'm trying to catch a especific config for a interface vlan, but since there are several interfaces vlan I'm getting a no match.
for example:
!
interface vlan 321
ip igmp snoop
interface vlan 124
ip igmp snoop
!
I'm trying the following expression:
^\s*interface\svlan\s\d*4\sip\sigmp\ssnoop$
For that I think multiline must be active.
Is there a way to know or activate multiline?
Regards,
Jose Chaves
I'm trying to catch a especific config for a interface vlan, but since there are several interfaces vlan I'm getting a no match.
for example:
!
interface vlan 321
ip igmp snoop
interface vlan 124
ip igmp snoop
!
I'm trying the following expression:
^\s*interface\svlan\s\d*4\sip\sigmp\ssnoop$
For that I think multiline must be active.
Is there a way to know or activate multiline?
Regards,
Jose Chaves
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-13-2022 01:03 PM
Clearly way too late to help the poster but I found that the best approach for EXOS devices is to try to match patterns against the XML config and not the CLI config. There doesn't appear to be any way to specify a multiline pattern but in the XML file, an object is often defined on a single line.
