VLAN Pool
Location in GUI: Fabric » Access Policies » Pools » VLAN
Diagram
Section titled “Diagram”Classes
Section titled “Classes”access_policies (apic)
Section titled “access_policies (apic)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| vlan_pools | List | [vlan_pools] | No |
vlan_pools (apic.access_policies)
Section titled “vlan_pools (apic.access_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| description | String | Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ | No | |
| allocation | Choice | static, dynamic | No | static |
| ranges | List | [ranges] | No |
ranges (apic.access_policies.vlan_pools)
Section titled “ranges (apic.access_policies.vlan_pools)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| from | Integer | min: 1, max: 4096 | Yes | |
| to | Integer | min: 1, max: 4096 | No | |
| allocation | Choice | inherit, static, dynamic | No | inherit |
| role | Choice | external, internal | No | external |
| description | String | Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ | No |
Examples
Section titled “Examples”Example-1: This configuration defines a static VLAN pool named STATIC1 for external use. The pool allocates VLANs statically within the range 4000–4002, with the role set to external. This is typically used for assigning specific VLANs to external connectivity or services, ensuring that the VLAN IDs are reserved and not dynamically assigned elsewhere in the fabric.
apic: access_policies: vlan_pools: - name: STATIC1 description: "Static VLAN Pool" allocation: static ranges: - from: 4000 to: 4002 role: external description: "Range #1"Example-2: This example creates a dynamic VLAN pool named DYNAMIC_INTERNAL, intended for internal VLAN allocation. The pool includes two ranges: one for general internal VLANs and another for a special project. The allocation is set to dynamic, and the role is internal.
apic: access_policies: vlan_pools: - name: DYNAMIC_INTERNAL description: "Dynamic VLAN Pool for Internal Networks" allocation: dynamic ranges: - from: 100 to: 150 role: internal description: "General Internal VLANs" - from: 200 to: 210 role: internal description: "Project VLANs"