Skip to main content

Allocate numbers

Number pools (CoreNumberPool) automatically assign sequential numbers to numeric attributes.

Prerequisites​

  • A running Infrahub instance
Schema used in this guide

The examples on this page use the following schema node. Adapt the type names to match your own schema.

nodes:
- name: VLAN
namespace: Ipam
attributes:
- name: name
kind: Text
unique: true
- name: vlan_id
kind: Number

Step 1: Create a number pool​

Create a pool for VLAN IDs:

Navigate to Object Management → Resource Manager and create a new Number Pool with:

  • Name: My VLAN ID Pool
  • Node: IpamVLAN
  • Node attribute: vlan_id
  • Start range: 100
  • End range: 1000

Creating Number Pool

Step 2: Allocate a VLAN ID​

Navigate to VLAN → Add VLAN. Next to the VLAN ID field, click the pools button and select your number pool.

Allocating Number Pool - Before Allocating Number Pool - After

success

The VLAN is created with VLAN ID allocated from the pool!

Next​