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

Method ip_in_subnet

systemvm/debian/opt/cloud/bin/cs/CsAddress.py:186–189  ·  view source on GitHub ↗
(self, ip)

Source from the content-addressed store, hash-verified

184 return self.get_attr("gateway6")
185
186 def ip_in_subnet(self, ip):
187 ipo = IPAddress(ip)
188 net = IPNetwork("%s/%s" % (self.get_ip(), self.get_size()))
189 return ipo in net
190
191 def get_gateway_cidr(self):
192 return "%s/%s" % (self.get_gateway(), self.get_size())

Callers 6

__updateMethod · 0.80
getGuestIpByIpMethod · 0.80
getDeviceByIpMethod · 0.80
getNetworkByIpMethod · 0.80
getGatewayByIpMethod · 0.80
find_device_for_gatewayFunction · 0.80

Calls 2

get_ipMethod · 0.95
get_sizeMethod · 0.95

Tested by

no test coverage detected