---
title: vlan
slug: enterprise-v6p1/vlan
createdAt: 2025-12-18T07:55:58.078Z
---

AsterNOS Model for Virtual LAN

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-vlan
  +--rw vlans
     +--rw vlan* [vlanid]
        +--rw vlanid                      cmn:vlan-id
        +--ro name?                       string
        +--rw mac-limit?                  uint32
        +--rw mac-learning?               boolean
        +--rw description?                string
        +--rw unknown-unicast-action?     vlan-bum-action
        +--rw unknown-multicast-action?   vlan-bum-action
        +--rw broadcast-action?           vlan-bum-action
        +--rw stp-ignored?                boolean
        +--rw flapping-detect?            boolean
        +--rw flapping-action?            identityref
        +--rw flapping-aging?             uint16
        +--rw flapping-level?             uint16

  augment /if:interfaces/if:interface:
    +--rw vlan-config
       +--rw vlan* [vlan-id]
          +--rw vlan-id         cmn:vlan-id
          +--rw tagging-mode?   enumeration

  rpcs:
    +---x config-vlan-group
    |  +---w input
    |     +---w vlan-ranges?                vlan-range
    |     +---w mac-limit?                  uint32
    |     +---w mac-learning?               boolean
    |     +---w description?                string
    |     +---w unknown-unicast-action?     vlan-bum-action
    |     +---w unknown-multicast-action?   vlan-bum-action
    |     +---w broadcast-action?           vlan-bum-action
    |     +---w stp-ignored?                boolean
    |     +---w flapping-detect?            boolean
    |     +---w flapping-action?            identityref
    |     +---w flapping-aging?             uint16
    |     +---w flapping-level?             uint16
    |     +---w igmp-mld-snooping
    |     |  +---w igmp-snooping
    |     |  |  +---w snooping
    |     |  |  |  +---w enable?                       boolean
    |     |  |  |  +---w fast-leave?                   boolean
    |     |  |  |  +---w proxy-enable?                 boolean
    |     |  |  |  +---w querier-enable?               boolean
    |     |  |  |  +---w querier-ip?                   inet:ip-address
    |     |  |  |  +---w version?                      enumeration
    |     |  |  |  +---w query-interval?               uint16
    |     |  |  |  +---w query-max-response-time?      uint16
    |     |  |  |  +---w robustness?                   uint8
    |     |  |  |  +---w last-member-query-interval?   uint16
    |     |  |  +---w mrouter
    |     |  |  |  +---w mrouter-aging?        uint16
    |     |  |  |  +---w mrouter-interfaces
    |     |  |  |     +---w mrouter-interface* [interface]
    |     |  |  |        +---w interface    union
    |     |  |  |        +---w type?        enumeration
    |     |  |  +---w mvlan
    |     |  |     +---w user-vlans*   cmn:vlan-id
    |     |  +---w mld-snooping
    |     |  |  +---w snooping
    |     |  |  |  +---w enable?                       boolean
    |     |  |  |  +---w fast-leave?                   boolean
    |     |  |  |  +---w proxy-enable?                 boolean
    |     |  |  |  +---w querier-enable?               boolean
    |     |  |  |  +---w querier-ip?                   inet:ip-address
    |     |  |  |  +---w version?                      enumeration
    |     |  |  |  +---w query-interval?               uint16
    |     |  |  |  +---w query-max-response-time?      uint16
    |     |  |  |  +---w robustness?                   uint8
    |     |  |  |  +---w last-member-query-interval?   uint16
    |     |  |  +---w mrouter
    |     |  |  |  +---w mrouter-aging?        uint16
    |     |  |  |  +---w mrouter-interfaces
    |     |  |  |     +---w mrouter-interface* [interface]
    |     |  |  |        +---w interface    union
    |     |  |  |        +---w type?        enumeration
    |     |  |  +---w mvlan
    |     |  |     +---w user-vlans*   cmn:vlan-id
    |     |  +---w group-limits
    |     |     +---w group-limit* [interface]
    |     |        +---w interface    union
    |     |        +---w max-group?   uint16
    |     +---w interfaces
    |     |  +---w interface* [name]
    |     |     +---w name      union
    |     |     +---w status?   enumeration
    |     +---w router-advertisement
    |     |  +---w managed-flag?        boolean
    |     |  +---w other-config-flag?   boolean
    |     |  +---w link-mtu?            cmn:mtu-type
    |     |  +---w on-link-flag?        boolean
    |     |  +---w autonomous-flag?     boolean
    |     |  +---w prefixes* [prefix]
    |     |  |  +---w prefix    inet:ipv6-prefix
    |     |  +---w rdnsses* [rdnss]
    |     |  |  +---w rdnss    inet:ipv6-address-no-zone
    |     |  +---w routes* [route]
    |     |     +---w route        inet:ipv6-prefix
    |     |     +---w preferred?   enumeration
    |     +---w switchports*                union
    +---x delete-vlan-group
    |  +---w input
    |     +---w vlan-ranges?   vlan-range
    +---x delete-vlan-group-switchports
    |  +---w input
    |     +---w vlan-ranges?   vlan-range
    |     +---w switchports*   union
    +---x show-vlan-summary
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-vlan-detail
    |  +---w input
    |  |  +---w vlan-id?   union
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-mac-flapping-config
    |  +---w input
    |  |  +---w vlan-id?   union
    |  +--ro output
    |     +--ro data
    |        +--ro mac-flapping-config* [vlan-id]
    |           +--ro vlan-id            cmn:vlan-id
    |           +--ro flapping-detect?   boolean
    |           +--ro flapping-action?   identityref
    |           +--ro flapping-aging?    uint16
    |           +--ro flapping-level?    uint16
    +---x show-mac-flapping-status
    |  +---w input
    |  |  +---w vlan-id?   union
    |  +--ro output
    |     +--ro data
    |        +--ro mac-flapping-status* [vlan-id]
    |           +--ro vlan-id             cmn:vlan-id
    |           +--ro mac-address?        string
    |           +--ro flapping-times?     uint16
    |           +--ro last-update?        string
    |           +--ro interface-status?   string
    +---x clear-mac-flapping-status
       +---w input
       |  +---w vlan-id?   union
       +--ro output
          +--ro result?   string
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                                              | **Access** |
| ----------------------------------------------------- | ---------- |
| /vlans                                                | Read-Write |
| /vlans/vlan                                           | Read-Write |
| /vlans/vlan/vlanid                                    | Read-Write |
| /vlans/vlan/name                                      | Read-Only  |
| /vlans/vlan/mac-limit                                 | Read-Write |
| /vlans/vlan/mac-learning                              | Read-Write |
| /vlans/vlan/description                               | Read-Write |
| /vlans/vlan/unknown-unicast-action                    | Read-Write |
| /vlans/vlan/unknown-multicast-action                  | Read-Write |
| /vlans/vlan/broadcast-action                          | Read-Write |
| /vlans/vlan/stp-ignored                               | Read-Write |
| /vlans/vlan/flapping-detect                           | Read-Write |
| /vlans/vlan/flapping-action                           | Read-Write |
| /vlans/vlan/flapping-aging                            | Read-Write |
| /vlans/vlan/flapping-level                            | Read-Write |
| /?/interfaces/interface/vlan-config                   | Read-Write |
| /?/interfaces/interface/vlan-config/vlan              | Read-Write |
| /?/interfaces/interface/vlan-config/vlan/vlan-id      | Read-Write |
| /?/interfaces/interface/vlan-config/vlan/tagging-mode | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/vlans</font>

**Path**

/vlans

**Node Type**

container

**Access**

Read-Write

### <font color="#1d50a2">/vlans/vlan</font>

**Path**

/vlans/vlan

**Node Type**

list

**Access**

Read-Write

### <font color="#1d50a2">/vlans/vlan/vlanid</font>

**Path**

/vlans/vlan/vlanid

**Node Type**

leaf

**Description**

VLAN identity

**Access**

Read-Write

**Data Type**

\<YANG type vlan-id>

**Constraints**

Valid range: 1 to 4094

### <font color="#1d50a2">/vlans/vlan/name</font>

**Path**

/vlans/vlan/name

**Node Type**

leaf

**Access**

Read-Only

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/vlans/vlan/mac-limit</font>

**Path**

/vlans/vlan/mac-limit

**Node Type**

leaf

**Description**

Limit the number of dynamic MAC addresses to be learned: when the mac number reaches the threshold, dynamic MAC addresses are no longer learned. 0 means no limit.

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 0 to 32000

### <font color="#1d50a2">/vlans/vlan/mac-learning</font>

**Path**

/vlans/vlan/mac-learning

**Node Type**

leaf

**Description**

Set mac-learning mode for vlan, if disable, vlan will not learn mac

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/vlans/vlan/description</font>

**Path**

/vlans/vlan/description

**Node Type**

leaf

**Description**

Set textual description of the vlan

**Access**

Read-Write

**Data Type**

\<YANG type string>

**Constraints**

String with length: 1 to 127

### <font color="#1d50a2">/vlans/vlan/unknown-unicast-action</font>

**Path**

/vlans/vlan/unknown-unicast-action

**Node Type**

leaf

**Description**

Set the unknown unicast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type vlan-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/vlans/vlan/unknown-multicast-action</font>

**Path**

/vlans/vlan/unknown-multicast-action

**Node Type**

leaf

**Description**

Set the unknown multicast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type vlan-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/vlans/vlan/broadcast-action</font>

**Path**

/vlans/vlan/broadcast-action

**Node Type**

leaf

**Description**

Set the broadcast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type vlan-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/vlans/vlan/stp-ignored</font>

**Path**

/vlans/vlan/stp-ignored

**Node Type**

leaf

**Description**

Ignore STP BPDU. If enabled, the VLAN will not participate in the processing of the STP state machine.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/vlans/vlan/flapping-detect</font>

**Path**

/vlans/vlan/flapping-detect

**Node Type**

leaf

**Description**

Set mac flapping detection enable

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/vlans/vlan/flapping-action</font>

**Path**

/vlans/vlan/flapping-action

**Node Type**

leaf

**Description**

Set interface shutdown when mac-flapping is detected

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- none
- error-down

### <font color="#1d50a2">/vlans/vlan/flapping-aging</font>

**Path**

/vlans/vlan/flapping-aging

**Node Type**

leaf

**Description**

Set mac-flapping detection time window in seconds

**Access**

Read-Write

**Data Type**

\<YANG type uint16>

**Constraints**

Valid range: 10 to 7200

### <font color="#1d50a2">/vlans/vlan/flapping-level</font>

**Path**

/vlans/vlan/flapping-level

**Node Type**

leaf

**Description**

Set mac-flapping detection times

**Access**

Read-Write

**Data Type**

\<YANG type uint16>

**Constraints**

Valid range: 5 to 500

### <font color="#1d50a2">/?/interfaces/interface/vlan-config</font>

**Path**

/?/interfaces/interface/vlan-config

**Node Type**

container

**Description**

VLAN related configuration that is part of the physical

Ethernet interface.

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/vlan-config/vlan</font>

**Path**

/?/interfaces/interface/vlan-config/vlan

**Node Type**

list

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/vlan-config/vlan/vlan-id</font>

**Path**

/?/interfaces/interface/vlan-config/vlan/vlan-id

**Node Type**

leaf

**Description**

VLAN identity

**Access**

Read-Write

**Data Type**

\<YANG type vlan-id>

**Constraints**

Valid range: 1 to 4094

### <font color="#1d50a2">/?/interfaces/interface/vlan-config/vlan/tagging-mode</font>

**Path**

/?/interfaces/interface/vlan-config/vlan/tagging-mode

**Node Type**

leaf

**Description**

Specifies the type of interface as a vlan member

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- tagged
- untagged

