Browse code

Merge "Ensure the Linux Bridge agent can be used with provider networking"

Jenkins authored on 2015/12/05 13:55:15
Showing 1 changed files
... ...
@@ -550,9 +550,11 @@ function create_neutron_initial_network {
550 550
             die_if_not_set $LINENO SUBNET_V6_ID "Failure creating SUBNET_V6_ID for $PROVIDER_SUBNET_NAME_V6 $TENANT_ID"
551 551
         fi
552 552
 
553
-        sudo ip link set $OVS_PHYSICAL_BRIDGE up
554
-        sudo ip link set br-int up
555
-        sudo ip link set $PUBLIC_INTERFACE up
553
+        if [[ $Q_AGENT == "openvswitch" ]]; then
554
+            sudo ip link set $OVS_PHYSICAL_BRIDGE up
555
+            sudo ip link set br-int up
556
+            sudo ip link set $PUBLIC_INTERFACE up
557
+        fi
556 558
     else
557 559
         NET_ID=$(neutron net-create --tenant-id $TENANT_ID "$PRIVATE_NETWORK_NAME" | grep ' id ' | get_field 2)
558 560
         die_if_not_set $LINENO NET_ID "Failure creating NET_ID for $PRIVATE_NETWORK_NAME $TENANT_ID"
... ...
@@ -698,7 +700,7 @@ function start_neutron_service_and_check {
698 698
 function start_neutron_l2_agent {
699 699
     run_process q-agt "$AGENT_BINARY --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE"
700 700
 
701
-    if is_provider_network; then
701
+    if is_provider_network && [[ $Q_AGENT == "openvswitch" ]]; then
702 702
         sudo ovs-vsctl --no-wait -- --may-exist add-port $OVS_PHYSICAL_BRIDGE $PUBLIC_INTERFACE
703 703
         sudo ip link set $OVS_PHYSICAL_BRIDGE up
704 704
         sudo ip link set br-int up