|
...
|
...
|
@@ -47,7 +47,11 @@ if is_service_enabled odl-compute; then
|
|
47
|
47
|
ODL_MGR_PORT=${ODL_MGR_PORT:-6640}
|
|
48
|
48
|
read ovstbl <<< $(sudo ovs-vsctl get Open_vSwitch . _uuid)
|
|
49
|
49
|
sudo ovs-vsctl set-manager tcp:$ODL_MGR_IP:$ODL_MGR_PORT
|
|
50
|
|
- sudo ovs-vsctl set Open_vSwitch $ovstbl other_config={"local_ip"="$ODL_LOCAL_IP"}
|
|
|
50
|
+ if [[ -n "$OVS_BRIDGE_MAPPINGS" ]] && [[ "$ENABLE_TENANT_VLANS" == "True" ]]; then
|
|
|
51
|
+ sudo ovs-vsctl set Open_vSwitch $ovstbl \
|
|
|
52
|
+ other_config:bridge_mappings=$OVS_BRIDGE_MAPPINGS
|
|
|
53
|
+ fi
|
|
|
54
|
+ sudo ovs-vsctl set Open_vSwitch $ovstbl other_config:local_ip=$ODL_LOCAL_IP
|
|
51
|
55
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
|
52
|
56
|
# no-op
|
|
53
|
57
|
:
|