MCPcopy Create free account
hub / github.com/apache/cloudstack / get_bridge_physdev

Function get_bridge_physdev

scripts/vm/network/security_group.py:187–191  ·  view source on GitHub ↗
(brname)

Source from the content-addressed store, hash-verified

185 logging.debug("Ignoring failure to delete ebtable rules for vm: " + vm_name)
186
187def 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
194def destroy_network_rules_for_vm(vm_name, vif=None):

Callers 2

add_fw_frameworkFunction · 0.85

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected