Navigation
Example: Using Global Replace in a Junos Configuration—Replacing an Interface Name
The following example shows how you can replace an interface name in a configuration:
[edit]user@host# show protocols {ospf {area 0.0.0.0 {interface so-0/0/0 {hello-interval 5;}}}}[edit]user@host# replace so-0/0/0 with so-1/1/0[edit]user@host# show protocols {ospf {area 0.0.0.0 {interface so-1/1/0 {hello-interval 5;}}}}