Merge "Update octavia plugin code"

This commit is contained in:
Zuul 2020-12-11 05:02:41 +00:00 committed by Gerrit Code Review
commit c4846162b6

View File

@ -4,8 +4,7 @@
XTRACE=$(set +o | grep xtrace)
set +o xtrace
if is_plugin_enabled octavia; then
function octavia_create_network_interface_device {
function octavia_create_network_interface_device {
INTERFACE=$1
MGMT_PORT_ID=$2
MGMT_PORT_MAC=$3
@ -26,9 +25,10 @@ if is_plugin_enabled octavia; then
else
die "Unknown network controller - $NEUTRON_AGENT/$Q_AGENT"
fi
}
}
function octavia_delete_network_interface_device {
function octavia_delete_network_interface_device {
if [[ $NEUTRON_AGENT == "openvswitch" || $Q_AGENT == "openvswitch" || $NEUTRON_AGENT == "ovn" || $Q_AGENT == "ovn" ]]; then
: # Do nothing
elif [[ $NEUTRON_AGENT == "linuxbridge" || $Q_AGENT == "linuxbridge" ]]; then
@ -38,8 +38,7 @@ if is_plugin_enabled octavia; then
else
die "Unknown network controller - $NEUTRON_AGENT/$Q_AGENT"
fi
}
fi
}
# Restore xtrace
$XTRACE