[j-nsp] switch idea.?

Phil Mayers p.mayers at imperial.ac.uk
Thu Dec 6 13:20:30 EST 2012


On 06/12/12 18:09, Phil Shafer wrote:
> Phil Mayers writes:
>> But then again, if you have JunOS and Junoscript, scripting a vlan add
>> is pretty trivial and moreover, can be done reliably.
>
> Consider using the "share-data" op script, which can sync config
> groups between devices.  It's manual, but simple:
>
> groups {
>      my-data {
>          apply-macro share-data {
>              device-1;   # list all the devices you want to share with
>              10.1.2.3;
>              mine.example.com;
>          }
>          vlan { ... }    # put whatever data you want to share
>      }
> }
> apply-groups my-data;
>
> The "op share-data" command will look at any groups with the
> share-data macro and propagate those changes as needed.

Cool, I hadn't seen that. Very nice.


More information about the juniper-nsp mailing list