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 access to a JUNOS router device with configured prefix-lists. You don't actually need to be running BGP to dry-run this recipe—the software we'll create will simply update the prefix-list resources themselves and allow the operator to bind a BGP session with a prefix-list. But you should be familiar with BGP and concepts such as:

  • Peering sessions
  • Autonomous systems and AS numbers
  • Advertising and accepting routing information, Network-Layer Reachability Information (NLRI) or, more simply, prefixes
  • Route filters and AS path filters

You'll also need Alexandre Snarskii's excellent bgpq3 package which is a blazingly fast command-line utility designed to communicate with IRRs such as ...

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