Hi
We need to match the following pattern in devices
ip address <ip> <mask>
ip access-group 101 in
no ip redirects
no ip unreachables
no ip proxy-arp
in entire file and if violated at even a single instance it should flag an error.
Pls help in testing this. the script am using right now is
while((?!(end$))){ip address .* .*.*\n(.*\n)*.*((?!(ip access-group 101 in.)).*).*\n(.*\n)*.*((?!(no ip redirects.)).*).*\n(.*\n)*.*((?!(no ip unreachables.)).*).*\n(.*\n)*.*((?!(no ip proxy-arp.)).*)}