From a9b4fcf0af6d1d0673dd62440676e49ea5e04830 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Mon, 20 Mar 2017 12:55:16 +0100 Subject: [PATCH] change from a /16 subnet to a /24 subnet With the transition to the new ninux-compatible network we choose to have a ip pool for vm that resides on the 10.150.42 network. As 254 unique addresses are sufficient for our need we reduce the subnet to a /24 --- roles/lxc_guest/templates/config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lxc_guest/templates/config.j2 b/roles/lxc_guest/templates/config.j2 index 216bc3b..6b2fc20 100644 --- a/roles/lxc_guest/templates/config.j2 +++ b/roles/lxc_guest/templates/config.j2 @@ -10,6 +10,6 @@ lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 -lxc.network.ipv4 = {{ hostvars[vm_name]['ansible_host'] }}/16 +lxc.network.ipv4 = {{ hostvars[vm_name]['ansible_host'] }}/24 lxc.network.ipv4.gateway = {{ hostvars[ext_gateway]['ansible_host'] }} lxc.start.auto = {% if auto_start %}1{% else %}0{% endif %}