Network Templates¶
Network templates define a prototype CIDR size that IPAM uses when allocating new networks from a container. They are referenced by next_available_network calls.
show template network¶
Syntax:
WAPI: GET networktemplate
configure template network add¶
Syntax:
WAPI: POST networktemplate
The cidr value is the prefix length (integer) for networks allocated from this template.
With comment and extensible attributes:
configure template network add branch-office cidr 25 \
comment "Branch /25 allocation" set Region EU
Set-chain depth cap
At most 4 set key=value pairs are accepted. See Extensible Attributes.
configure template network \<name> delete¶
Syntax:
WAPI: GET networktemplate?name=<name> then DELETE <ref>
Related commands¶
- Networks - IPAM - use
next_available_networkto allocate from a container. - Network Containers - containers hold available address space.