Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted
Accepted Solution

Rule test fails even when copy/pasting from Junos config.

Techie
Posts: 6
3139     0

I'm trying to set up a rule to use in a policy, but I can't get a successful test no matter what. I am copy/pasting directly from the config (both the live config from a CLI session and from the NetMRI cached config). As far as I can tell, the block matches exactly, but when I run the test, it always fails saying the config doesn't contain my block.

 

Is there a trick to getting Junos config rules set up?

Scott Gardner
t. @scott_abt
Highlighted

Re: Rule test fails even when copy/pasting from Junos config.

Adviser
Posts: 429
3140     0

Can you post an example of what you are trying to match and I can help Smiley Happy

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

www.sifbaksh.com
Highlighted

Re: Rule test fails even when copy/pasting from Junos config.

[ Edited ]
Techie
Posts: 6
3140     0

Here's what I'm trying to match. I have obscured the secret data but I promise it matches exactly in the config.

    ... removed ...

I have tried including the spaces and not including them.

Scott Gardner
t. @scott_abt
Highlighted

Re: Rule test fails even when copy/pasting from Junos config.

Techie
Posts: 6
3140     0

Actually I just figured it out. There are special characters in the block that have to be escaped. I am passing my tests now. Thank you for looking!

Scott Gardner
t. @scott_abt
Showing results for 
Search instead for 
Do you mean 

Recommended for You