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

Method set_mark

systemvm/debian/opt/cloud/bin/cs/CsAddress.py:398–401  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

396 route.add_defaultroute_v6(self.cl.get_ip6gateway())
397
398 def set_mark(self):
399 cmd = "-A PREROUTING -i %s -m state --state NEW -j CONNMARK --set-xmark %s/0xffffffff" % \
400 (self.getDevice(), self.dnum)
401 self.fw.append(["mangle", "", cmd])
402
403 def get_type(self):
404 """ Return the type of the IP

Callers 1

post_configureMethod · 0.95

Calls 2

getDeviceMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected