Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Mapping OpenConfig Local Routing Commands to Junos Configuration

 Note

See OpenConfig Data Model Version topic to understand the data models supported version and its Junos OS release for Juniper Networks ACX Series, EX Series, MX Series, PTX Series, and QFX Series.

Table 1 and Table 2 show the mapping of OpenConfig local routing commands to the relevant configuration in Junos.

Table 1: Static Route Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Command path prefix:

/local-routes/static-routes

Local Static Prefix

/static/config/prefix

set routing-options static route prefix

Local Static Next Hop

/static/config/prefix

/static/config/next-hop/ip-address

/static/config/next-hop/local-defined-next-hop

/static/config/next-hop/string

set routing-options static route prefix next-hop (address | interface)

set routing-options static route prefix discard

Local Static Tag

/static/config/prefix

/static/config/set-tag

set routing-options static route prefix tag tag

Table 2: Local Aggregate Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Command path prefix:

/local-routes/local-aggregates

Local Aggregate Prefix

/aggregate/config/prefix

set routing-options aggregate route prefix

Local Aggregate Discard

/aggregate/config/prefix

/aggregate/config/discard

set routing-options aggregate route prefix discard

Local Aggregate Tag

/aggregate/config/prefix

/aggregate/config/set-tag

set routing-options aggregate route prefix tag tag