Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configure Interoperability Between MX Series Routers and OpenDaylight

OpenDaylight (ODL), hosted by the Linux Foundation, is an open-source platform for network programmability aimed at enhancing software-defined networking (SDN).

Starting from Junos OS Release 17.3R1, you can configure interoperability between MX Series routers and the ODL controller. ODL provides a southbound Network Configuration Protocol (NETCONF) connector API, which uses NETCONF and YANG models, to interact with a network device. A southbound interface, an OpenFlow (or alternative) protocol specification, enables communication between ODL and routers or switches. After you configure interoperability between the ODL controller and the router, you can use the ODL platform to change the router configuration, orchestrate and provision the router, and execute remote procedure calls (RPCs) on the router to get state information.

Setting up interoperability between ODL and an MX Series router involves the following tasks:

Configuring NETCONF on the MX Series Router

As a prerequisite for configuring interoperability between ODL and an MX Series router, you must configure NETCONF on the router. NETCONF is used by the ODL controller to interact with southbound devices.

To configure NETCONF on the router:

  1. Enable access to the NETCONF SSH subsystem.
  2. Configure the NETCONF server to enforce certain behaviors that are compliant with RFC 4741, NETCONF Configuration Protocol, during NETCONF sessions.
  3. Configure the yang-compliant statement to require that the NETCONF server return YANG-compatible configuration data for the <get-config> and <get-configuration format="xml"> RPCs.
  4. Commit the changes.

Configuring NETCONF Trace Options

After you configure NETCONF on the router, you must configure NETCONF trace options. For more information about NETCONF and Junos XML protocol tracing operations, see NETCONF and Junos XML Protocol Tracing Operations Overview.

To configure NETCONF trace options:

Configure the details of the file to receive the output of the tracing operation. You can configure the file name, maximum file size, and flags to indicate tracing operations, by using the following statements:

To know more about configuring tracing operations for NETCONF and Junos XML protocol sessions, see this example.

Connecting ODL to MX Series Router

After NETCONF is configured on the MX Series router, you need to connect the ODL controller to the router to complete the process. For more details on this, see this ODL documentation.