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

Method flushAllIpv6Rules

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

Source from the content-addressed store, hash-verified

691 CsHelper.execute("nft delete table %s %s" % (address_family, table))
692
693 def flushAllIpv6Rules(self):
694 logging.info("Flush all IPv6 ACL rules")
695 address_family = 'ip6'
696 table = 'ip6_acl'
697 tables = CsHelper.execute("nft list tables %s | grep %s" % (address_family, table))
698 if any(table in t for t in tables):
699 CsHelper.execute("nft delete table %s %s" % (address_family, table))
700
701 def process(self):
702 if self.config.is_routed() and not self.config.is_vpc():

Callers 1

processMethod · 0.95

Calls 3

anyFunction · 0.85
executeMethod · 0.65
infoMethod · 0.45

Tested by

no test coverage detected