vlan
AsterNOS Model for Virtual LAN
YANG Tree Diagram
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? stringResources
Resource List
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 |
Detailed Nodes
/vlans
Path
/vlans
Node Type
container
Access
Read-Write
/vlans/vlan
Path
/vlans/vlan
Node Type
list
Access
Read-Write
/vlans/vlan/vlanid
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
/vlans/vlan/name
Path
/vlans/vlan/name
Node Type
leaf
Access
Read-Only
Data Type
<YANG type string>
/vlans/vlan/mac-limit
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
/vlans/vlan/mac-learning
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]
/vlans/vlan/description
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
/vlans/vlan/unknown-unicast-action
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
/vlans/vlan/unknown-multicast-action
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
/vlans/vlan/broadcast-action
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
/vlans/vlan/stp-ignored
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]
/vlans/vlan/flapping-detect
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]
/vlans/vlan/flapping-action
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
/vlans/vlan/flapping-aging
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
/vlans/vlan/flapping-level
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
/?/interfaces/interface/vlan-config
Path
/?/interfaces/interface/vlan-config
Node Type
container
Description
VLAN related configuration that is part of the physical
Ethernet interface.
Access
Read-Write
/?/interfaces/interface/vlan-config/vlan
Path
/?/interfaces/interface/vlan-config/vlan
Node Type
list
Access
Read-Write
/?/interfaces/interface/vlan-config/vlan/vlan-id
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
/?/interfaces/interface/vlan-config/vlan/tagging-mode
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