Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Re: Regex for VTY Transport Compliance

$
0
0

Presumably you have a second rule for the second block of VTY?

 

I'm currently looking at doing these two I think (which I think are equivalent to what you guys are suggesting, but without actually using Search Config Block piece).  Plus the fleet of other stuff in the VTYs I have to match and a variant for the Con0 stuff.

 

line vty 0 \d(.*\n)*? transport input ssh\n(.*\n)*line vty

line vty 5 \d(.*\n)* transport input ssh\n


I really need to learn more on the regex stuff...  (ie: capturing vs non-capturing ).  Back to the interwebs I go.


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>