Mapping OpenConfig Network Instance Commands to Junos Operation
See Junos YANG Data Model Explorer 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.
Network instance models a generic virtual forwarding table on a device. This supports a Layer 3 forwarding construct such as a virtual routing and forwarding (VRF) instance, or a Layer 2 instance such as a virtual switch instance. A mixed Layer 2 and Layer 3 instances are also supported.
Tables Table 1 to Table 7 lists the network instance resource paths.
For configuration and mappings to Junos commands, see:
- Table 1: Basic Configuration
- Table 2: Interfaces Configuration
-
Table 3: Subinterfaces Configuration
- Table 4: Static Routes Configuration
- Table 5: Local Aggregates Configuration
- Table 6: Inter-Instance Policies Configuration
- Table 7: Route Limits
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
description |
network-instances {
network-instance <> {
config {
description;
}
}
}
|
routing-instances <> {
description;
}
|
|
enabled |
network-instances {
network-instance <> {
config {
enabled;
}
}
}
|
routing-instances <>; Note:
Use the |
|
name |
network-instances {
network-instance <> {
config {
name;
}
}
}
|
routing-instances <>; |
|
route-distinguisher |
network-instances {
network-instance <> {
config {
route-distinguisher <>;
}
}
}
|
routing-instances <> {
route-distinguisher <>;
}
|
|
router-id |
network-instances {
network-instance <> {
config {
router-id <>;
}
}
}
|
routing-instances <> {
router-options {
router-id <>;
}
}
|
|
type |
network-instances {
network-instance <> {
config {
type <>;
}
}
}
|
routing-instances <> {
instance-type <>;
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
interface |
network-instances {
network-instance <> {
interfaces {
config {
interface <>;
}
}
}
}
|
routing-instances <> {
interface <>;
}
|
|
subinterface |
network-instances {
network-instance <> {
interfaces {
config {
subinterface <>;
}
}
}
}
|
routing-instances <> {
interface <>;
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
interval |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:interval <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
max-advertisement-interval <>;
}
}
}
|
|
lifetime |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:lifetime <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
default-lifetime <>;
}
}
}
|
|
suppress |
openconfig-interfaces:interfaces {
interface <> {
subinterfaces {
subinterface <> {
oc-ip:ipv6 {
oc-ip:router-advertisement {
oc-ip:config {
oc-ip:suppress <>;
}
}
}
}
}
}
}
|
protocols {
router-advertisement {
interface <> {
passive-mode <>;
}
}
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
description |
openconfig-network-instance:network-instances {
network-instance <> {
protocols {
protocol <> {
static-routes{
static <> {
config {
description <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
description <>
}
}
}
}
|
|
prefix |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
config {
prefix <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <>;
}
}
}
|
|
set tag (static routes) |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
config {
set-tag <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
tag <>;
}
}
}
}
|
|
index |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
index <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
|
metric |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
metric <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
qualified-next-hop <> {
metric <>;
}
}
}
}
}
|
|
next-hop |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
next-hop <>;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
|
interface |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
interface-ref {
config {
interface <>;
}
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
|
sub-interface |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
interface-ref {
config {
subinterface <>;
}
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
next-hop <>;
}
}
}
}
|
|
recurse |
network-instances {
network-instance <> {
protocols {
protocol {
static-routes {
static {
next-hops {
next-hop <> {
config {
recurse;
}
}
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
route <> {
resolve;
}
}
}
}
|
|
default metric |
network-instances {
network-instance <> {
protocols {
protocol {
config {
default-metric;
}
}
}
}
}
|
routing-instances <> {
routing-options {
static {
defaults {
metric <>;
}
}
}
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
description |
openconfig-network-instance:network-instances {
network-instance <> {
protocols {
protocol <> {
local-aggregates{
aggregate <> {
config {
description <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
description <>
}
}
}
}
|
|
discard |
network-instances {
network-instance <> {
protocols {
protocol {
local-aggregates {
aggregate {
config {
discard <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
discard;
}
}
}
}
|
|
prefix |
network-instances {
network-instance <> {
protocols {
protocol {
local-aggregates {
aggregate {
config {
prefix <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <>;
}
}
}
|
|
set tag |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate {
config {
set-tag <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
tag <>;
}
}
}
}
|
|
metric |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate <> {
config {
metric <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
metric <>;
}
}
}
}
|
|
preference |
network-instances {
network-instance {
protocols {
protocol {
local-aggregates {
aggregate <> {
config {
preference <>;
}
}
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
route <> {
preference <>;
}
}
}
}
|
|
default metric |
network-instances {
network-instance <> {
protocols {
protocol {
config {
default-metric;
}
}
}
}
}
|
routing-instances <> {
routing-options {
aggregate {
defaults {
metric <>;
}
}
}
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
export policy |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
export-policy;
}
}
}
}
}
|
routing-instances <> {
vrf-export <>;
}
|
|
import policy |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
import-policy;
}
}
}
}
}
|
routing-instances <> {
vrf-import <>;
}
|
|
default export policy |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
default-export-policy;
}
}
}
}
}
|
routing-instances <> {
export-default-action <accept | reject>;
}
|
|
You must configure an export policy before you can configure a default export policy. |
||
|
default import policy |
network-instances {
network-instance <> {
inter-instance-policies {
apply-policy <> {
config {
default-import-policy;
}
}
}
}
}
|
routing-instances <> {
import-default-action <accept | reject>;
}
|
|
You must configure an import policy before you can configure a default import policy. |
||
|
export route target |
network-instances {
network-instance <> {
inter-instance-policies {
import-export-policy {
config {
export-route-target;
}
}
}
}
}
|
routing-instances <> {
vrf-target {
export;
}
}
|
|
import route target |
network-instances {
network-instance <> {
inter-instance-policies {
import-export-policy {
config {
import-route-target;
}
}
}
}
}
|
routing-instances <> {
vrf-target {
import;
}
}
|
|
Command Name |
OpenConfig Configuration |
Junos Configuration |
|---|---|---|
|
maximum |
network-instances {
network-instance <> {
route-limits {
route-limit <> {
config {
maximum <>;
}
}
}
}
}
|
routing-instances <> {
routing-options rib <> {
maximum-paths <>;
}
}
|
|
warning only |
network-instances {
network-instance <> {
route-limits {
route-limit <> {
config {
warning-only <>;
}
}
}
}
}
|
routing-instances <> {
routing-options rib <> {
maximum-paths log-only;
}
}
|
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.