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

Method get_ip6

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

Source from the content-addressed store, hash-verified

150 return self.get_attr("public_ip")
151
152 def get_ip6(self):
153 if not self.config.is_vpc():
154 return self.config.cmdline().get_dev_ip6prelen(self.get_device())
155 if self.is_public():
156 return self.config.guestnetwork().get_router_ip6prelen()
157 elif self.is_guest():
158 return self.config.guestnetwork().get_dev_ip6prelen(self.get_device())
159 return self.get_attr("public_ip6")
160
161 def get_network(self):
162 return self.get_attr("network")

Callers 1

set_primaryMethod · 0.80

Calls 9

get_deviceMethod · 0.95
is_publicMethod · 0.95
is_guestMethod · 0.95
get_attrMethod · 0.95
is_vpcMethod · 0.80
get_dev_ip6prelenMethod · 0.80
cmdlineMethod · 0.80
get_router_ip6prelenMethod · 0.80
guestnetworkMethod · 0.80

Tested by

no test coverage detected