Browse code

Update stack.sh for Quantum linuxbridge plugin changes.

With support for multiple physical networks being added to the Quantum
linuxbridge plugin via https://review.openstack.org/#/c/10938/, the
configuration of physical interfaces for the agent has changed. The
physical_interface_mappings variable, a list of mappings between
physical network names and physical interfaces, replaces the
physical_interface variable.

Also, all remnants of the V1 quantum API have been removed, so the
target_v2_api variable no longer needs to be set.

Change-Id: I5f9be772f71b5ce3fd92eb258e0131705d341647

Bob Kukura authored on 2012/08/13 15:29:54
Showing 1 changed files
... ...
@@ -1133,7 +1133,6 @@ if is_service_enabled quantum; then
1133 1133
         sudo sed -i -e "s/.*enable_tunneling = .*$/enable_tunneling = $OVS_ENABLE_TUNNELING/g" /$Q_PLUGIN_CONF_FILE
1134 1134
     fi
1135 1135
 
1136
-    iniset /$Q_PLUGIN_CONF_FILE AGENT target_v2_api True
1137 1136
     Q_CONF_FILE=/etc/quantum/quantum.conf
1138 1137
     cp $QUANTUM_DIR/etc/quantum.conf $Q_CONF_FILE
1139 1138
 fi
... ...
@@ -1184,7 +1183,7 @@ if is_service_enabled q-agt; then
1184 1184
        # Start up the quantum <-> linuxbridge agent
1185 1185
        # set the default network interface
1186 1186
        QUANTUM_LB_PRIVATE_INTERFACE=${QUANTUM_LB_PRIVATE_INTERFACE:-$GUEST_INTERFACE_DEFAULT}
1187
-       sudo sed -i -e "s/^physical_interface = .*$/physical_interface = $QUANTUM_LB_PRIVATE_INTERFACE/g" /$Q_PLUGIN_CONF_FILE
1187
+       iniset /$Q_PLUGIN_CONF_FILE LINUX_BRIDGE physical_interface_mappings default:$QUANTUM_LB_PRIVATE_INTERFACE
1188 1188
        AGENT_BINARY="$QUANTUM_DIR/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py"
1189 1189
     fi
1190 1190
 fi