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

Method get_size

systemvm/debian/opt/cloud/bin/cs/CsAddress.py:201–203  ·  view source on GitHub ↗

Return the network size in bits (24, 16, 8 etc)

(self)

Source from the content-addressed store, hash-verified

199 return "%s/%s" % (self.get_gateway6(), self.get_cidr6_size())
200
201 def get_size(self):
202 """ Return the network size in bits (24, 16, 8 etc) """
203 return self.get_attr("size")
204
205 def get_cidr6_size(self):
206 if self.config.is_vpc() and self.is_guest():

Callers 2

ip_in_subnetMethod · 0.95
get_gateway_cidrMethod · 0.95

Calls 1

get_attrMethod · 0.95

Tested by

no test coverage detected