Skip to content

YANG Object Reference

Haemanthi Sree edited this page Aug 9, 2019 · 42 revisions

This information contains a list of currently supported YANG objects.

Model for managing system-wide services and functions on network devices.

Supported operations and container paths

  • GET /openconfig-system:system/state
  • GET /openconfig-system:system/memory
  • GET /openconfig-system:system/cpus
  • GET /openconfig-system:system/processes

Model for representing a system component inventory, which can include hardware or software elements arranged in an arbitrary structure.

Supported operations and container paths

  • GET /openconfig-platform:components/component

Currently it supports only system board EEPROM, to get system EEPROM need to use "System Eeprom" as a key for the components key attribute. Bulk get request gets only system EEPROM info.

Model for managing network interfaces and subinterfaces.

Supported operations and container paths

module: openconfig-interfaces
    +--rw interfaces
       +--rw interface* [name]
          +--rw name             -> ../config/name
          +--rw config
          |  +--rw name?            string
          |  +--rw type             identityref
          |  +--rw mtu?             uint16
          |  +--rw loopback-mode?   boolean
          |  +--rw description?     string
          |  +--rw enabled?         boolean
          +--ro state
          |  +--ro name?            string
          |  +--ro type             identityref
          |  +--ro mtu?             uint16
          |  +--ro loopback-mode?   boolean
          |  +--ro description?     string
          |  +--ro enabled?         boolean
          |  +--ro ifindex?         uint32
          |  +--ro admin-status     enumeration
          |  +--ro oper-status      enumeration
          |  +--ro last-change?     oc-types:timeticks64
          |  +--ro logical?         boolean
          |  +--ro counters
          |     +--ro in-octets?             oc-yang:counter64
          |     +--ro in-pkts?               oc-yang:counter64
          |     +--ro in-unicast-pkts?       oc-yang:counter64
          |     +--ro in-broadcast-pkts?     oc-yang:counter64
          |     +--ro in-multicast-pkts?     oc-yang:counter64
          |     +--ro in-discards?           oc-yang:counter64
          |     +--ro in-errors?             oc-yang:counter64
          |     +--ro in-unknown-protos?     oc-yang:counter64
          |     +--ro in-fcs-errors?         oc-yang:counter64
          |     +--ro out-octets?            oc-yang:counter64
          |     +--ro out-pkts?              oc-yang:counter64
          |     +--ro out-unicast-pkts?      oc-yang:counter64
          |     +--ro out-broadcast-pkts?    oc-yang:counter64
          |     +--ro out-multicast-pkts?    oc-yang:counter64
          |     +--ro out-discards?          oc-yang:counter64
          |     +--ro out-errors?            oc-yang:counter64
          |     +--ro carrier-transitions?   oc-yang:counter64
          |     +--ro last-clear?            oc-types:timeticks64
          +--rw hold-time
          |  +--rw config
          |  |  +--rw up?     uint32
          |  |  +--rw down?   uint32
          |  +--ro state
          |     +--ro up?     uint32
          |     +--ro down?   uint32
          +--rw subinterfaces
             +--rw subinterface* [index]
                +--rw index     -> ../config/index
                +--rw config
                |  +--rw index?         uint32
                |  +--rw description?   string
                |  +--rw enabled?       boolean
                +--ro state
                   +--ro index?          uint32
                   +--ro description?    string
                   +--ro enabled?        boolean
                   +--ro name?           string
                   +--ro ifindex?        uint32
                   +--ro admin-status    enumeration
                   +--ro oper-status     enumeration
                   +--ro last-change?    oc-types:timeticks64
                   +--ro logical?        boolean
                   +--ro counters
                      +--ro in-octets?             oc-yang:counter64
                      +--ro in-pkts?               oc-yang:counter64
                      +--ro in-unicast-pkts?       oc-yang:counter64
                      +--ro in-broadcast-pkts?     oc-yang:counter64
                      +--ro in-multicast-pkts?     oc-yang:counter64
                      +--ro in-discards?           oc-yang:counter64
                      +--ro in-errors?             oc-yang:counter64
                      +--ro in-unknown-protos?     oc-yang:counter64
                      +--ro in-fcs-errors?         oc-yang:counter64
                      +--ro out-octets?            oc-yang:counter64
                      +--ro out-pkts?              oc-yang:counter64
                      +--ro out-unicast-pkts?      oc-yang:counter64
                      +--ro out-broadcast-pkts?    oc-yang:counter64
                      +--ro out-multicast-pkts?    oc-yang:counter64
                      +--ro out-discards?          oc-yang:counter64
                      +--ro out-errors?            oc-yang:counter64
                      +--ro carrier-transitions?   oc-yang:counter64
                      +--ro last-clear?            oc-types:timeticks64

Defines configuration and operational state data for network access control lists

Supported operations and container paths

  • GET /openconfig-acl:acl
  • GET /openconfig-acl:acl/acl-sets/acl-set={name},{type}
  • DELETE /openconfig-acl:acl/acl-sets/acl-set={name},{type}/acl-entries/acl-entry={sequence-id}
  • DELETE /openconfig-acl:acl/acl-sets/acl-set={name},{type}
  • SET /openconfig-acl:acl/acl-sets/acl-set={name},{type}/acl-entries/acl-entry

Defines configuration and operational state data for the LLDP protocol.

Supported operations and container paths

  • GET /openconfig-lldp:lldp/interfaces
  • GET /openconfig-lldp:lldp/interfaces/interface={name}
Clone this wiki locally