Skip to content

VLAN Pool

Location in GUI: Fabric » Access Policies » Pools » VLAN

Diagram
NameTypeConstraintMandatoryDefault Value
vlan_poolsList[vlan_pools]No

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
allocationChoicestatic, dynamicNostatic
rangesList[ranges]No

NameTypeConstraintMandatoryDefault Value
fromIntegermin: 1, max: 4096Yes
toIntegermin: 1, max: 4096No
allocationChoiceinherit, static, dynamicNoinherit
roleChoiceexternal, internalNoexternal
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No

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"