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

Method is_public

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

Source from the content-addressed store, hash-verified

913 return False
914
915 def is_public(self):
916 if "nw_type" in self.address and self.address['nw_type'] in ['public']:
917 return True
918 return False
919
920 def is_private_gateway(self):
921 if "is_private_gateway" in self.address:

Callers 5

reconfigure_interfacesFunction · 0.45
set_faultMethod · 0.45
set_backupMethod · 0.45
set_primaryMethod · 0.45
test_is_publicMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_is_publicMethod · 0.36