Reserve some IPs, that are always going to be used

This commit is contained in:
Arif Ali 2021-12-25 18:49:23 +00:00
parent 81cedc58f7
commit 8baf74df56
Signed by: arif
GPG Key ID: 369608FBA1353A70

9
reserve_ips.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
. configs/maas.config
for subnet in ${maas_subnets[*]} ; do
maas ${maas_profile} ipranges create type=reserved comment="Servers" start_ip="${subnet}.241" end_ip="${subnet}.254"
done
maas ${maas_profile} ipranges create type=reserved comment="OpenStack VIPs" start_ip="${maas_ip_range}.211" end_ip="${maas_ip_range}.225"