You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
set -ex
MGMT_PORT_MAC=fa:16:3e:c8:a7:74
MGMT_PORT_ID=8b66f1d7-70e4-484f-bc01-e94f146a6398
if [ "$1" == "start" ]; then
docker exec -i openvswitch_vswitchd ovs-vsctl -- --may-exist add-port br-int o-hm0 -- set Interface o-hm0 type=internal -- set Interface o-hm0 external-ids:iface-status=active -- set Interface o-hm0 external-ids:attached-mac=$MGMT_PORT_MAC -- set Interface o-hm0 external-ids:iface-id=$MGMT_PORT_ID
ip link set dev o-hm0 address $MGMT_PORT_MAC
ip link set o-hm0 up
dhclient -v o-hm0 -cf /etc/dhcp/octavia/dhclient.conf
elif [ "$1" == "stop" ]; then
docker exec -i openvswitch_vswitchd ovs-vsctl del-port o-hm0
else
docker exec -i openvswitch_vswitchd ovs-vsctl show
ip a s dev o-hm0
fi