Browse code

Merge "Prevent spawning two VPN agents"

Jenkins authored on 2015/08/18 11:59:42
Showing 1 changed files
... ...
@@ -730,7 +730,9 @@ function start_neutron_l2_agent {
730 730
 function start_neutron_other_agents {
731 731
     run_process q-dhcp "python $AGENT_DHCP_BINARY --config-file $NEUTRON_CONF --config-file=$Q_DHCP_CONF_FILE"
732 732
 
733
-    if is_service_enabled q-vpn; then
733
+    if is_service_enabled neutron-vpnaas; then
734
+        :  # Started by plugin
735
+    elif is_service_enabled q-vpn; then
734 736
         run_process q-vpn "$AGENT_VPN_BINARY $(determine_config_files neutron-vpn-agent)"
735 737
     else
736 738
         run_process q-l3 "python $AGENT_L3_BINARY $(determine_config_files neutron-l3-agent)"