Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Mapping OpenConfig System Model Commands to Junos Configuration

Note:

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

The following tables show the mapping of OpenConfig system commands with the relevant configuration in Junos OS:

Table 1: SSH Server Configuration

Command Name

OpenConfig Configuration

Junos Configuration

Timeout

openconfig-system:system { 
    ssh-server {
        config {
            timeout <>;
        }
    }
} 
system { 
    services {
        ssh {
            client-alive-count-max 1;
            client-alive-interval <>;
        }
    } 
} 

The OpenConfig timeout leaf value is set to the client-alive-interval parameter. The client-alive-count-max parameter value is set to 1. It must be set to 1 to overwrite the default value of 3.

Session limit

openconfig-system:system { 
    ssh-server {
        config {
            session-limit <>;
        }
    }
} 

system { 
    services {
        ssh {
            connection-limit <>;
        }
    } 
} 

The OpenConfig session-limit leaf value is set to the Junos parameter connection-connection-limit value.

Rate limit

openconfig-system:system { 
    ssh-server {
        config {
            rate-limit <>;
        }
    }
} 
system { 
    services {
        ssh {
            rate-limit <>;
        }
    } 
} 

The OpenConfig rate-limit leaf value is set to the Junos parameter rate-limit value.

Protocol version

openconfig-system:system { 
    ssh-server {
        config {
            protocol-version <>;
        }
    }
} 
system { 
    services {
        ssh {
            protocol-version <>;
        }
    } 
} 

The OpenConfig protocol-version leaf value is set to the Junos parameter protocol-version value.

Enable

openconfig-system:system { 
    ssh-server {
        config {
            enable <>;
        }
    }
} 
system { 
    services {
        ssh {
                ……….
        }
    } 
} 

The OpenConfig enable leaf value toggles the set system services ssh configuration. When enable is not configured, the SSH configuration is enabled by default. The model defines TRUE as the default value for the enable leaf.

Table 2: NTP Configuration

Command Name

OpenConfig Configuration

Junos Configuration

Prefer

openconfig-system:system { 
   ntp {
      servers {
         server <> {
            config {
               prefer <>;
            }
         }
      }
   }
} 
system {
   ntp {
      server <> prefer;
   }
} 

When the OpenConfig prefer leaf value is set to true, the Junos prefer parameter will be set. The Junos prefer parameter is a toggle and needs to be set when the OpenConfig value prefer is set to true.

Version

openconfig-system:system {
   ntp {
      servers {
         server <> {
            config {
               version <>;
            }
         }
      }
   }
}
system {
   ntp {
      server <> version <>;
   }
} 

The OpenConfig NTP version leaf value is set to the Junos parameter version value.

Port

openconfig-system:system {
   ntp {
      servers {
         server <> {
            config {
               port <>;
            }
         }
      }
   }
} 

Not supported.

Junos OS doesn’t have a parameter for an NTP server port, and instead, always runs at port 1234. Consequently, the OpenConfig leaf port is not supported.

Enabled

openconfig-system:system {
   ntp {
      config {
         enabled <>;
      }
   }
} 
system {
   ntp {
            ………
   }
}

The OpenConfig enable leaf value toggles the set system ntp configuration. Since its default value is FALSE, the NTP configuration is enabled only when the enable parameter is set to TRUE.