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

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