openconfig-vlan

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-vlan

Prefix: oc-vlan

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-vlan \
  -d @config.json

📚 External Documentation

💻 YANG Source📖 YANG Catalog🌍 OpenConfig Docs
module: openconfig-vlan
  +--rw vlans
     +--rw vlan* [vlan-id]
        +--rw vlan-id    -> ../config/vlan-id
        +--rw config
        |  +--rw vlan-id?   oc-vlan-types:vlan-id
        |  +--rw name?      string
        |  +--rw status?    enumeration
        +--ro state
        |  +--ro vlan-id?   oc-vlan-types:vlan-id
        |  +--ro name?      string
        |  +--ro status?    enumeration
        +--rw members
           +--ro member* []
              +--ro state
                 +--ro interface?   base-interface-ref

  augment /oc-if:interfaces/oc-if:interface/oc-if:subinterfaces/oc-if:subinterface:
    +--rw vlan
       +--rw config
       |  +--rw vlan-id?   union
       +--ro state
          +--ro vlan-id?   union
  augment /oc-if:interfaces/oc-if:interface/oc-if:config:
    +--rw tpid?   identityref
  augment /oc-if:interfaces/oc-if:interface/oc-if:state:
    +--ro tpid?   identityref
  augment /oc-if:interfaces/oc-if:interface/oc-eth:ethernet:
    +--rw switched-vlan
       +--rw config
       |  +--rw interface-mode?   oc-vlan-types:vlan-mode-type
       |  +--rw native-vlan?      oc-vlan-types:vlan-id
       |  +--rw access-vlan?      oc-vlan-types:vlan-id
       |  +--rw trunk-vlans*      union
       +--ro state
          +--ro interface-mode?   oc-vlan-types:vlan-mode-type
          +--ro native-vlan?      oc-vlan-types:vlan-id
          +--ro access-vlan?      oc-vlan-types:vlan-id
          +--ro trunk-vlans*      union
  augment /oc-if:interfaces/oc-if:interface/oc-lag:aggregation:
    +--rw switched-vlan
       +--rw config
       |  +--rw interface-mode?   oc-vlan-types:vlan-mode-type
       |  +--rw native-vlan?      oc-vlan-types:vlan-id
       |  +--rw access-vlan?      oc-vlan-types:vlan-id
       |  +--rw trunk-vlans*      union
       +--ro state
          +--ro interface-mode?   oc-vlan-types:vlan-mode-type
          +--ro native-vlan?      oc-vlan-types:vlan-id
          +--ro access-vlan?      oc-vlan-types:vlan-id
          +--ro trunk-vlans*      union
  augment /oc-if:interfaces/oc-if:interface:
    +--rw routed-vlan
       +--rw config
       |  +--rw vlan?   union
       +--ro state
          +--ro vlan?   union