Browse code

Merge "Update neutron-vpn-agent path"

Jenkins authored on 2013/07/20 05:32:01
Showing 2 changed files
... ...
@@ -415,7 +415,12 @@ function start_neutron_agents() {
415 415
     # Start up the neutron agents if enabled
416 416
     screen_it q-agt "cd $NEUTRON_DIR && python $AGENT_BINARY --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE"
417 417
     screen_it q-dhcp "cd $NEUTRON_DIR && python $AGENT_DHCP_BINARY --config-file $NEUTRON_CONF --config-file=$Q_DHCP_CONF_FILE"
418
-    screen_it q-l3 "cd $NEUTRON_DIR && python $AGENT_L3_BINARY --config-file $NEUTRON_CONF --config-file=$Q_L3_CONF_FILE"
418
+
419
+    if is_service_enabled q-vpn; then
420
+        screen_it q-vpn "cd $NEUTRON_DIR && $AGENT_VPN_BINARY --config-file $NEUTRON_CONF --config-file=$Q_L3_CONF_FILE"
421
+    else
422
+        screen_it q-l3 "cd $NEUTRON_DIR && python $AGENT_L3_BINARY --config-file $NEUTRON_CONF --config-file=$Q_L3_CONF_FILE"
423
+    fi
419 424
     screen_it q-meta "cd $NEUTRON_DIR && python $AGENT_META_BINARY --config-file $NEUTRON_CONF --config-file=$Q_META_CONF_FILE"
420 425
 
421 426
     if [ "$VIRT_DRIVER" = 'xenserver' ]; then
... ...
@@ -585,7 +590,6 @@ function _configure_neutron_vpn()
585 585
 {
586 586
     neutron_vpn_install_agent_packages
587 587
     neutron_vpn_configure_common
588
-    neutron_vpn_configure_agent
589 588
 }
590 589
 
591 590
 # _configure_neutron_plugin_agent() - Set config files for neutron plugin agent
... ...
@@ -6,7 +6,7 @@ MY_XTRACE=$(set +o | grep xtrace)
6 6
 set +o xtrace
7 7
 
8 8
 
9
-VPN_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent"
9
+AGENT_VPN_BINARY="$NEUTRON_BIN_DIR/neutron-vpn-agent"
10 10
 VPN_PLUGIN="neutron.services.vpn.plugin.VPNDriverPlugin"
11 11
 
12 12
 function neutron_vpn_install_agent_packages() {
... ...
@@ -21,9 +21,5 @@ function neutron_vpn_configure_common() {
21 21
     fi
22 22
 }
23 23
 
24
-function neutron_vpn_configure_agent() {
25
-    AGENT_L3_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent"
26
-}
27
-
28 24
 # Restore xtrace
29 25
 $MY_XTRACE