Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

04. Lab topology and devices preparation

Khelil Sator edited this page Jun 19, 2017 · 3 revisions

Lab topology

We are using the two Juniper MX routers called fabric-01 (mx10-1) and fabric-02 (mx80-3).
There are directly connected between them (from their interface xe-0/0/0).

OpenConfig repository

The OpenConfig models are available in the Openconfig repository.

OpenConfig package installation on Juniper devices

  • You first need to download the OpenConfig package from Juniper download website
  • Then you need to install the OpenConfig package on the devices:
lab@fabric-02> request system software add xxxx

Check the Openconfig details on Juniper devices:

You can then check:

lab@fabric-02> show version detail | match openconfig
JUNOS Openconfig [0.0.0.3]

The Openconfig modules and the corresponding translation scripts are already installed on the two devices.

lab@fabric-01> show system yang package
Package ID            :junos-openconfig
YANG Module(s)        :iana-if-type.yang ietf-inet-types.yang ietf-interfaces.yang ietf-yang-types.yang jnx-aug-openconfig-bgp.yang jnx-aug-openconfig-if-ip.yang jnx-aug-openconfig-interfaces.yang jnx-aug-openconfig-lacp.yang jnx-aug-openconfig-lldp.yang jnx-aug-openconfig-local-routing.yang jnx-aug-openconfig-mpls.yang jnx-openconfig-dev.yang openconfig-bgp-multiprotocol.yang openconfig-bgp-operational.yang openconfig-bgp-policy.yang openconfig-bgp-types.yang openconfig-bgp.yang openconfig-extensions.yang openconfig-if-aggregate.yang openconfig-if-ethernet.yang openconfig-if-ip-ext.yang openconfig-if-ip.yang openconfig-interfaces.yang openconfig-lacp.yang openconfig-lldp-types.yang openconfig-lldp.yang openconfig-local-routing.yang openconfig-mpls-igp.yang openconfig-mpls-ldp.yang openconfig-mpls-rsvp.yang openconfig-mpls-sr.yang openconfig-mpls-static.yang openconfig-mpls-te.yang openconfig-mpls-types.yang openconfig-mpls.yang openconfig-platform-types.yang openconfig-platform.yang openconfig-policy-types.yang openconfig-rib-bgp-ext.yang openconfig-rib-bgp-types.yang openconfig-rib-bgp.yang openconfig-routing-policy.yang openconfig-terminal-device.yang openconfig-transport-types.yang openconfig-types.yang openconfig-vlan-types.yang openconfig-vlan.yang
Translation Script(s) :openconfig-bgp.slax openconfig-interface.slax openconfig-local-routing.slax openconfig-mpls.slax openconfig-policy.slax
Translation script status is enabled

The YANG modules, the equivalent YIN modules, and the translation scripts are stored into these directories:

lab@fabric-01> file list /opt/yang-pkg/junos-openconfig/yang
lab@fabric-01> file list /opt/yang-pkg/junos-openconfig/yin
lab@fabric-01> file list /opt/yang-pkg/junos-openconfig/translation/
lab@fabric-01> file list /var/db/scripts/translation