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

Method list

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

Source from the content-addressed store, hash-verified

891 ["nat", "", "-A POSTROUTING -j SNAT -o %s --to-source %s" % (self.dev, cmdline.get_source_nat_ip())])
892
893 def list(self):
894 self.iplist = {}
895 cmd = ("ip addr show dev " + self.dev)
896 for i in CsHelper.execute(cmd):
897 vals = i.lstrip().split()
898 if (vals[0] == 'inet'):
899 cidr = vals[1]
900 self.iplist[cidr] = self.dev
901
902 def configured(self):
903 if self.address['cidr'] in list(self.iplist.keys()):

Callers 1

__init__Method · 0.95

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected