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

Function get_br_fw

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

Source from the content-addressed store, hash-verified

1270
1271
1272def get_br_fw(brname):
1273 cmd = "iptables-save |grep physdev-is-bridged |grep FORWARD |grep BF |grep '\-o' | grep -w " + brname + "|awk '{print $9}' | head -1"
1274 brfwname = execute(cmd).strip()
1275 if not brfwname:
1276 brfwname = "BF-" + brname
1277 return brfwname
1278
1279
1280def add_fw_framework(brname):

Callers 8

default_network_rulesFunction · 0.85
cleanup_bridgeFunction · 0.85
add_fw_frameworkFunction · 0.85

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected