openconfig-ethernet-segments

YANG Data Model Tree Structure

View YANG Source on GitHub →

📚 API Documentation & Navigation

📄 Swagger API Spec 📂 Browse OpenConfig APIs 🌳 All Trees

📋 Module Metadata

Namespace: http://openconfig.net/yang/openconfig-ethernet-segments

Prefix: oc-ethernet-s

Related Modules:
openconfig-access-points
openconfig-acl
openconfig-alarms

💡 Example Usage

# PUT configuration
curl -X PUT \
  -H "Content-Type: application/yang-data+json" \
  -u admin:password \
  --insecure \
  https://device-ip/restconf/data/openconfig-ethernet-segments \
  -d @config.json

📚 External Documentation

💻 YANG Source📖 YANG Catalog🌍 OpenConfig Docs
module: openconfig-ethernet-segments
  +--rw ethernet-segments
     +--rw ethernet-segment* [name]
        +--rw name           -> ../config/name
        +--rw config
        |  +--rw name?              string
        |  +--rw esi-type?          oc-evpn-types:esi-type
        |  +--rw esi?               union
        |  +--rw redundancy-mode?   identityref
        |  +--rw interface?         -> /oc-if:interfaces/interface/name
        |  +--rw subinterface?      -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/subinterface/index
        +--ro state
        |  +--ro name?              string
        |  +--ro esi-type?          oc-evpn-types:esi-type
        |  +--ro esi?               union
        |  +--ro redundancy-mode?   identityref
        |  +--ro interface?         -> /oc-if:interfaces/interface/name
        |  +--ro subinterface?      -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/subinterface/index
        +--rw df-election
           +--rw config
           |  +--rw df-election-method?   enumeration
           |  +--rw preference?           uint16
           |  +--rw revertive?            boolean
           |  +--rw election-wait-time?   uint32
           +--ro state
              +--ro df-election-method?   enumeration
              +--ro preference?           uint16
              +--ro revertive?            boolean
              +--ro election-wait-time?   uint32