Mapping OpenConfig Routing Policy Commands to Junos Configuration
See OpenConfig Data Model Version topic to understand the data models supported version and its Junos OS release for Juniper Networks EX2300, EX3400, EX4300, EX4600, and EX9200 switches, MX Series, PTX Series, and QFX Series.
Table 1 to Table 3 show the mapping of OpenConfig routing policy commands to the relevant configuration in Junos.
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Prefix Set |
|
|
Neighbor Set |
|
|
Tag Set |
|
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Community Set |
|
|
AS Path Set |
|
Not supported |
Ext Community Set |
|
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefix: /routing-policy/policy-definition/statements/statement |
||
Call Policy |
|
|
Prefix Set |
|
|
Match Set Options |
conditions { match-prefix-set { config { match-set-options <> } } } } |
policy-options { policy-statement <> { term <> { from { route-filter-list <> invert; } } } } |
Possible OpenConfig values for |
||
Neighbor Set |
|
|
Match Neighbor Set |
|
Not supported |
Tag Set |
|
|
Match Tag Set |
|
Not supported |
Install Protocol EQ |
|
|
IGP Conditions |
|
Not supported |
BGP Match Community Set |
|
|
BGP Match Ext Community Set |
|
|
BGP Match Ext Community Set Options |
|
Not supported |
BGP Match AS Path Set |
|
Not supported |
BGP MED EQ |
|
|
BGP Origin EQ |
|
|
BGP Next Hop |
|
|
BGP Local Preference EQ |
|
|
BGP Community Count |
|
|
BGP AS Path Length |
|
Not supported |
Accept-Route |
|
|
Reject-Route |
|
|
Set Tag |
actions { set-tag { inline { config { tag <>; } } } } |
policy-options { policy-statement <> { term <> { then { tag <> ; } } } } } |
IGP Actions |
|
|
BGP Actions Set AS Path Prepend |
|
Not supported |
BGP Actions Set Community |
|
|
BGP Actions Set Ext Community |
|
|
BGP Actions Set Route Origin |
|
|
BGP Actions Set Local Preferences |
|
|
BGP Actions Set Next Hop |
|
|
BGP Actions Set Med |
|
|
BGP Actions As-Path-Prepend |
|
|