Mapping OpenConfig BGP 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 MX Series, PTX Series, and QFX Series.
The tables below show the mapping of OpenConfig BGP commands with the relevant configuration in Junos.
AFI-SAFI Prefix-Limit Configuration
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { teardown <>; } } } } } } |
AFI-SAFI Prefix-Limit Received Configuration
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family (inet | inet6) { unicast { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family (inet | inet6) { unicast { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family (inet | inet6) { unicast { prefix-limit { teardown <>; } } } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Peer Group Export Policy |
network-instance DEFAULT { config { type DEFAULT_INSTANCE; } protocols { protocol BGP bgp { bgp { neighbors { neighbor 1.1.1.1 { config { peer-group ext; } afi-safis { afi-safi IPV4_UNICAST { apply-policy { config { export-policy send-direct; } } } } } } } } } } |
protocols { bgp { group ext { type internal; local-as 200; neighbor 1.1.1.1 { family inet { unicast { export send-direct; } } } } } } |
Peer Group Import Policy |
network-instance DEFAULT { config { type DEFAULT_INSTANCE; } protocols { protocol BGP bgp { bgp { peer-groups { peer-group ext { config { local-as 200; peer-type INTERNAL; } afi-safis { afi-safi IPV4_UNICAST { apply-policy { config { import-policy send-direct; } } } } } } } } } } |
protocols { bgp { group ext { type internal; family inet { unicast { import send-direct; } } local-as 200; } } } |
Neighbor Export Policy |
network-instance DEFAULT { config { type DEFAULT_INSTANCE; } protocols { protocol BGP bgp { bgp { neighbors { neighbor 1.1.1.1 { config { peer-group ext; } afi-safis { afi-safi IPV4_UNICAST { apply-policy { config { export-policy send-direct; } } } } } } } } } } |
protocols { bgp { group ext { type internal; local-as 200; neighbor 1.1.1.1 { family inet { unicast { export send-direct; } } } } } } |
Neighbor Import Policy |
network-instance DEFAULT { config { type DEFAULT_INSTANCE; } protocols { protocol BGP bgp { bgp { neighbors { neighbor 1.1.1.1 { config { peer-group ext; } afi-safis { afi-safi IPV4_UNICAST { apply-policy { config { import-policy send-direct; } } } } } } } } } } |
protocols { bgp { group ext { type internal; local-as 200; neighbor 1.1.1.1 { family inet { unicast { import send-direct; } } } } } } |
Global Export Policy |
Not Supported |
protocols { bgp { family inet { unicast { export send-direct; } } } } |
Global Import Policy |
Not Supported |
protocols { bgp { family inet { unicast { import send-direct; } } } } |
Note:
OpenConfig configuration of export and import policies under
the |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family (inet | inet6 | inet-vpn | inet6-vpn) { labeled-unicast { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family (inet | inet6 | inet-vpn | inet6-vpn) { labeled-unicast { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family (inet | inet6 | inet-vpn | inet6-vpn) { labeled-unicast { prefix-limit { teardown <>; } } } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family (inet-vpn | inet6-vpn) { multicast { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family (inet-vpn | inet6-vpn) { labeled-unicast { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family (inet-vpn | inet6-vpn) { labeled-unicast { prefix-limit { teardown <>; } } } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefix:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family l2vpn { signaling { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family l2vpn { signaling { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family l2vpn { signaling { prefix-limit { teardown <>; } } } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefix:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family evpn { signaling { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family evpn { signaling { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family evpn { signaling { prefix-limit { teardown <>; } } } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Command path prefixes:
|
||
Max-Prefixes |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { maximum <>; } } } } } } |
Prevent-Teardown |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { teardown; } } } } } } |
Warning-Threshold-PCT |
|
protocols { bgp { group <> { family (inet | inet6) { segment-routing-te { prefix-limit { teardown <>; } } } } } } |