Skip to Content
Automating Junos Administration
book

Automating Junos Administration

by Jonathan Looney, Stacy Smith
April 2016
Intermediate to advanced
684 pages
17h 34m
English
O'Reilly Media, Inc.
Content preview from Automating Junos Administration

Chapter 5. Commit Scripts

Commit scripts are a powerful way to modify the commit process. They let you transform the configuration between the time the user types commit and the time the configuration is read by the daemons. You can enforce custom configuration checks, automatically fix common configuration mistakes, and dynamically expand the configuration. In short, you can customize the configuration process to make it work for your environment.

Use Cases

Before diving into the details, let’s take a look at some of the target use cases for commit scripts.

Custom Configuration Checks

The Junos software enforces a set of configuration checks that ensure basic configuration sanity. For example, the Junos software may prevent you from committing a BGP configuration that references a policy that is undefined, or it may prevent you from configuring the same IP address for two different BGP peers. However, these configuration checks do not ensure the configuration is correct for your environment. Rather, they merely check that the configuration may be suitable for some environment. Put differently, they check that the configuration is syntactically correct, not contextually correct. And this behavior makes sense. After all, how is the Junos software to know what makes sense in any given network?

However, you may know a certain configuration is appropriate, or inappropriate, for your environment. Some organizations distill this knowledge into standards or configuration templates. Using commit ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Network Programmability and Automation

Network Programmability and Automation

Jason Edelman, Scott S. Lowe, Matt Oswalt
Network Programmability and Automation Fundamentals

Network Programmability and Automation Fundamentals

Khaled Abuelenain, Jeff Doyle, Anton Karneliuk, Vinit Jain
CCNP Enterprise Advanced Routing ENARSI 300-410 Official Cert Guide

CCNP Enterprise Advanced Routing ENARSI 300-410 Official Cert Guide

Raymond Lacoste, Ramiro Garza Rios, Bradley Edgeworth, Jasos Gooley

Publisher Resources

ISBN: 9781491928875Errata Page