Does NCM support regex backreferences? I'm trying to capture the IP of a bgp neighbor, then ensure the neighbor has a few more standard entries:
neighbor <capture this IP> remote-as 10000
neighbor <backreferenced IP> peer-group monkeys
neighbor <backreferenced IP> description bananas
neighbor <backreferenced IP> maximum-prefix 100
I cooked this up:
neighbor (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) remote-as 1000
neighbor \1 peer-group monkeys
neighbor \1 description bananas
neighbor \1 maximum-prefix 100
But, it doesn't appear to be processing this correctly. My regex skills aren't that great, but, I'm wondering if maybe this regex function is not supported in NCM?
Many thanks,
Aaron