Browse code

XenAPI: Enable linux bridge in Dom0 for neturon

When using neutron network under xenserver, we must enable linux bridge
in Dom0 as neutron will use linux bridge qbr in compute node for
security group. But by default XenServer use openvswitch and disabled
linux bridge. This patch is to remove this restriction.

Change-Id: I0e8124ff2323810fdc46c717a750ce7e8f4aa0c6

Huan Xie authored on 2016/09/27 14:57:06
Showing 1 changed files
... ...
@@ -90,6 +90,10 @@ CRONTAB
90 90
         echo "install_conntrack_tools"
91 91
     } | $ssh_dom0
92 92
 
93
+    if is_service_enabled neutron; then
94
+        # Remove restriction on linux bridge in Dom0 when neutron is enabled
95
+        $ssh_dom0 "rm -f /etc/modprobe.d/blacklist-bridge*"
96
+    fi
93 97
 }
94 98
 
95 99
 # install_nova_hypervisor() - Install external components