(brname)
| 185 | logging.debug("Ignoring failure to delete ebtable rules for vm: " + vm_name) |
| 186 | |
| 187 | def get_bridge_physdev(brname): |
| 188 | # eth1.50@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master breth1-50 state forwarding priority 32 cost 4 | |
| 189 | # eth1.50@eth1: | eth1.50@eth1 | eth1.50 |
| 190 | physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1 | cut -d ':' -f1 | cut -d '@' -f1" % brname) |
| 191 | return physdev.strip() |
| 192 | |
| 193 | |
| 194 | def destroy_network_rules_for_vm(vm_name, vif=None): |
no test coverage detected