# launch container and kvm with one network interface
vm config net A
vm config filesystem $images/minicccfs
vm launch container vm0
vm launch kvm vm1

# should have two ports
shell bash -c "ovs-vsctl list-ports mega_bridge | grep mega_tap | wc -l"

vm kill all

# need to wait for tap reaper
shell sleep 5

# should have one port (container destroys port on kill)
shell bash -c "ovs-vsctl list-ports mega_bridge | grep mega_tap | wc -l"

# restart
vm start vm[0-1]

# should be back up to two
shell bash -c "ovs-vsctl list-ports mega_bridge | grep mega_tap | wc -l"
