Add ipv6 support to baremetal virthost networks 97/27797/3
authorMichael Chapman <woppin@gmail.com>
Tue, 31 Jan 2017 14:12:59 +0000 (01:12 +1100)
committerFeng Pan <fpan@redhat.com>
Thu, 23 Feb 2017 20:09:37 +0000 (20:09 +0000)
This won't be used in the vast majority of cases, but where someone
wants to use an ipv6 external network on the undercloud, this will
be needed.

Change-Id: Ibb41e0fee7c112c19446d96eb195c0df552c90d1
Signed-off-by: Michael Chapman <woppin@gmail.com>
lib/configure-deps-functions.sh

index b979996..3c82c66 100755 (executable)
@@ -51,7 +51,7 @@ function configure_deps {
       echo "${blue}INFO: Creating Virsh Network: $network & OVS Bridge: ${NET_MAP[$network]}${reset}"
       ovs-vsctl list-br | grep "^${NET_MAP[$network]}$" > /dev/null || ovs-vsctl add-br ${NET_MAP[$network]}
       virsh net-list --all | grep " $network " > /dev/null || (cat > ${libvirt_dir}/apex-virsh-net.xml && virsh net-define ${libvirt_dir}/apex-virsh-net.xml) << EOF
-<network>
+<network ipv6='yes'>
   <name>$network</name>
   <forward mode='bridge'/>
   <bridge name='${NET_MAP[$network]}'/>