O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

In order to complete this recipe, you'll need a JUNOS router with some physical Ethernet interfaces attached. If you don't have this and you're using virtual Olive or vRR for testing, you can also make do with GRE interfaces, but you'll have to modify the configuration templates to remove the VLAN identifier configuration components, since these are not applicable for GRE.

You should also have a good understanding of the JUNOS CLI structure. In this recipe, we're going to use a feature called apply-macro. This feature allows a developer to extend the JUNOS configuration by including opaque key-value pair attributes within the JUNOS configuration. In our case, we're going to use the feature in order to implement a simple mapping ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required