
Drop the lxc bridge interface configuration file before checking for, and bringing up, the lxc bridge interface. Also, put the lxc-net.override file in place prior to lxc being installed. Without this file, the lxcbr0 bridge will automatically be created and assigned an address when the lxc service is started. Tests has been added and updated to ensure that the lxc bridge interface configuration file looks as expected and the bridge interface itself has the expected IP address when overriding the role's default lxc_net_address variable. Change-Id: Ie135adf0e458bd964c2d43a645d65907c0a6eac6
16 lines
486 B
INI
16 lines
486 B
INI
auto lxcbr0
|
|
iface lxcbr0 inet static
|
|
address 10.100.100.1
|
|
netmask 255.255.255.0
|
|
# dnsmasq start and stop
|
|
post-up /usr/local/bin/lxc-system-manage iptables-create
|
|
post-up /usr/local/bin/lxc-system-manage dnsmasq-start || true
|
|
post-down /usr/local/bin/lxc-system-manage iptables-remove
|
|
post-down /usr/local/bin/lxc-system-manage dnsmasq-stop
|
|
bridge_fd 0
|
|
bridge_maxwait 0
|
|
bridge_ports none
|
|
bridge_hello 2
|
|
bridge_maxage 12
|
|
bridge_stp off
|