From 8baf74df56ed10a7bf6c9b40af91f2549fd1088f Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Sat, 25 Dec 2021 18:49:23 +0000 Subject: [PATCH] Reserve some IPs, that are always going to be used --- reserve_ips.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 reserve_ips.sh diff --git a/reserve_ips.sh b/reserve_ips.sh new file mode 100755 index 0000000..ea0370d --- /dev/null +++ b/reserve_ips.sh @@ -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"