I am trying to make a complaince report that will check if a certain command is enabled on bgp vrf's. Below is a snippet of what I need to pull. I would like ti to go through and report on any VRF's that don't have the command.
Snippet:
router bgp 1111
vrf ENG
rd 0000:1111
address-family ipv4 unicast
label mode per-vrf
aggregate-address 10.0.0.0/20 summary-only
redistribute connected
redistribute static
!
!
vrf PUBLIC
rd 0000:1111
label mode per-vrf
address-family ipv4 unicast
redistribute connected
redistribute static
!
!
I tried the following regex to search with no success.
Update:
^router\sbgp\s1111\n\svrf\s(.*)\n\s\s(.*)\n\s\s(.*)\n\s\s\s(label.*)
Then told it to "find string" label mode per-vrf". This only reports on one and quits, I want it to loop through each vrf under bgp and report if its under all vrf instances.
Is there a way to get this to work using a compliance report?
