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

Method flushAllRules

systemvm/debian/opt/cloud/bin/configure.py:719–725  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

717 """
718
719 def flushAllRules(self):
720 logging.info("Flush all IPv6 firewall rules")
721 address_family = 'ip6'
722 table = 'ip6_firewall'
723 tables = CsHelper.execute("nft list tables %s | grep %s" % (address_family, table))
724 if any(table in t for t in tables):
725 CsHelper.execute("nft delete table %s %s" % (address_family, table))
726
727 def process(self):
728 fw = self.config.get_ipv6_fw()

Callers 1

processMethod · 0.95

Calls 3

anyFunction · 0.85
executeMethod · 0.65
infoMethod · 0.45

Tested by

no test coverage detected