JAUT
Junos Platform Automation and DevOps


  • Duration: 5 days
  • Price: $4,750.00
  • Certifications:
  • Exams:
Course Overviewremove_circle_outline

This five-day course provides students with knowledge of how to automate Junos using DevOps automation tools, protocols, and technologies. Students receive hands-on development experience with tools and languages relevant to automating the Junos OS platform in a DevOps environment. The course includes an introduction to the Junos XML API, and NETCONF but focuses on using Python, PyEZ, and Ansible to automate Junos.

The course introduces students to Junos commit, operation (op), event, and SNMP scripts. JSON, YAML, and Jinja2 are introduced as these languages facilitate Junos automation. The course also introduces the Junos Extension Toolkit and related APIs. Finally, the course discusses the use of JSNAPy and Junos ZTP autoinstallation tools. Through demonstrations and hands-on labs, students will gain experience in automating the Junos operating system and device operations.

This course uses Junos OS Release 17.1R1, PyEZ 2.0, Python 2.7, and Ansible 2.3.

Target Audienceadd_circle_outline

This course benefits individuals responsible for configuring and monitoring devices running the Junos OS.

Course Objectivesadd_circle_outline

After successfully completing this course, you should be able to:

  • Describe the NETCONF protocol.
  • Explain the capabilities of the Junos OS XML API.
  • Describe the use of XSLT, SLAX, and XPath in the XML API.
  • Describe the Junos Automation UI and explain the role of gRPC, NETCONF, and REST in Junos Automation.
  • Identify the languages, frameworks, management suites, and tools used in automating Junos.
  • Describe the YANG Protocol and explain the capabilities of YANG.
  • Use the YANG model to issue Junos commands and to configure Junos.
  • Explain the benefits of using JSON and YAML.
  • List where JSON and YAML are used in Junos Automation.
  • Convert between JSON, YAML, and XML.
  • Describe the features and benefits of using Python in Junos automation.
  • Configure Junos devices to use Python and create simple Python scripts.
  • Describe the function of Junos operation, commit, event, and SNMP scripts.
  • Implement Junos operation, commit, event, and SNMP scripts using Python.
  • Identify how Junos automation uses Jinja2 and create Python scripts that use Jinja2.
  • Explain how PyEZ makes Junos automation easier.
  • Use PyEZ to gather facts from Junos, perform configuration tasks, and use PyEZ to manipulate the file system and perform system upgrades to Junos.
  • Implement OpenConfig in the Junos OS.
  • Describe the process of implementing custom YANG modules.
  • Implement a translation script for a custom YANG module.
  • Explain the use of the Junos REST API in automation.
  • Use the Junos REST API to get information from Junos.
  • Describe what JET is and what it includes.
  • Create a project in the JET IDE.
  • Execute scripts using on-box and off-box automation.
  • Describe how Ansible is used in Junos automation and install Ansible.
  • Create Ansible playbooks to automate Junos.
  • Describe how JSNAPy can help automate Junos devices.
  • Implement JSNAPy into a Junos environment.
  • Describe how ZTP works.
  • Configure in-band ZTP and out-of-band ZTP.
Course Outlineadd_circle_outline

Day 1

Chapter 1: Course Introduction

Chapter 2: Junos Automation Architecture and Overview

  • Why Automate
  • Junos MGD Based Automation
  • Junos JSD Based Automation
  • Automation Languages, Libraries, and Frameworks
  • Automation Management Systems
  • Other Junos Automation Tools

Chapter 3: NETCONF and the XML API

  • NETCONF
  • XML API
  • XML API Programming Languages
  • XML API Tools
  • Lab 1: Exploring the XML API

Day 2

Chapter 4: JSON and YAML

  • Origins of JSON and YAML
  • Features and Benefits
  • JSON and YAML uses in Junos Automation
  • Creating Well-Formed JSON and YAML Documents
  • Conversion To and From XML
  • Lab 2: Using JSON and YAML

Chapter 5: Python and Junos PyEZ

  • Introduction to Python and PyEZ
  • Python Development Environment
  • Working with RPCs using Junos PyEZ
  • Working with an Unstructured Junos Configuration
  • Working with Junos PyEZ Tables and Views
  • Junos PyEZ Exception Handling
  • Lab 3: Implementing Python and Junos PyEZ in Junos

Chapter 6: Jinja2 and Junos PyEZ

  • Jinja2 Overview
  • Jinja2 Syntax
  • Creating a Junos PyEZ, YAML, and Jinja2 Solution
  • Lab 4: Using Jinja2 Templates with PyEZ

Day 3

Chapter 7: Using Ansible to Automate Junos

  • Ansible Overview
  • Installing Ansible
  • Creating and executing Ansible playbooks to manage devices running Junos OS
  • Use Case - Using Ansible to configure devices running Junos OS
  • Use Case - Using Ansible to install software on devices running Junos OS
  • Use Case - Using Ansible to reboot or shut down devices running Junos OS
  • Use Case - Using Ansible to revert a device running Junos OS to a factory Default Configuration
  • Lab 5: Automating Junos with Ansible

Chapter 8: Junos Automation with JSNAPy

  • JSNAPy Overview
  • Installation
  • Integration into Ansible
  • JSNAPy d.Snapcheck, Snapshot, and Diff Functions
  • Lab 6: Configuring JSNAPy

Day 4

Chapter 9: Junos OS Commit and Op Scripts

  • Junos Automation Scripting Overview
  • Creating Junos OS Commit Scripts
  • Creating Junos OS Op Scripts
  • Lab 7: Junos Commit and Op Scripts

Chapter 10: Junos OS Event and SNMP Scripts

  • Identify Junos OS events
  • Create Junos OS event policies
  • Create Junos OS event scripts
  • Create Junos OS SNMP scripts
  • Lab 8: Junos event policies and scripts

Chapter 11: YANG

  • YANG Overview
  • YANG Modules
  • YANG Syntax
  • Junos YANG Case Studies
  • Creating and Using Non-Native YANG Modules

Chapter 12: OpenConfig

  • Describe the Advantages of OpenConfig
  • Modify the Junos OS Configuration using OpenConfig
  • Describe using OpenConfig with the Junos Telemetry Interface (JTI)
  • Lab 9: Implementing OpenConfig

Day 5

Chapter 13: Junos Extension Toolkit (JET)

  • JET Overview and Components
  • Setup a JET VM
  • Create JET Packages
  • Use the JET API

Chapter 14: The Junos OS REST API

  • Describe the Purpose of the Junos OS REST API
  • Create REST API RPC Queries
  • Use the REST API Explorer
  • Use Case - Using the Junos REST API
  • Lab 10: Implementing the Junos REST API

Appendix A: Zero Touch Provisioning

  • ZTP Overview
  • The purpose and value of ZTP
  • The components and operations of ZTP
  • How to deploy a QFX5100 Series switch using ZTP
Prerequisitesadd_circle_outline

Students should have intermediate-level networking knowledge and an understanding of the Open Systems Interconnection (OSI) model and the TCP/IP protocol suite.

Students should also have familiarity with a programming language such as C, C++, Perl, Python, Ruby, or Java. Students should also attend the Introduction to the Junos Operating System (IJOS) course prior to attending this class.

Lastly, a high level understanding of object-oriented programming is a plus, but not a requirement.

Upcoming Classes
  • Click below to see more class dates with course versions
  • See More Dates
Have questions? Let us help you.