i need to change the security zones is its respective security policies. However, i have some Security Zones that has same name that some address book. For example:Security Zone: TEST-AIAddress_Book: TEST-AI.
If i change to [edit security policies] hierarchy and run the command "replace pattern TEST-AI with TEST-AI-123, the address book will be changed too.
So, i´m trying to find a way to replace the pattern TEST-AI, only when this being displayed with "from-zone TEST-AI" and "to-zone TEST-AI".
To change the zone name, i can follow with "rename", or even with "replace pattern" into the [edit security zones] hierarchy. The problem is only with the Security Policies.
Please, could you help me?
You can do this in two steps:1. Go to security policies hierarchy and do replace. This will change zone and addres-book nameedit security policiesreplace pattern TEST-AI with TEST-AI-123top2. Now go to policy zone hierarchy and do replace for address-book only to old valueedit security policies from-zone TEST-AI-123 to-zone TEST-AI-123replace pattern TEST-AI-123 with TEST-AItopshow | compare