Moving configuration with the Juniper rename command

The Juniper platform has a feature which allows configuration sections to be moved (renamed) with the rename command. For example, moving a port configuration from one interface to another.

Original configuration:

[edit]
[email protected]# show interfaces
ge-0/0/2 {
    unit 0 {
        family inet {
            address 192.168.0.1/24;
        }
    }
}

Moving the configuration:

[edit]
[email protected]# rename interfaces ge-0/0/2 to ge-0/0/5

Validating the move:

[edit]
[email protected]# show interfaces
ge-0/0/5 {
    unit 0 {
        family inet {
            address 192.168.0.1/24;
        }
    }
}

comments powered by Disqus