cancel
Showing results for 
Search instead for 
Did you mean: 

XMC Governance regex flags

XMC Governance regex flags

Jose_Chaves
New Contributor II
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
1 REPLY 1

Ed_McGuigan1
New Contributor III

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.

GTM-P2G8KFN