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

Method get_control_if

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

Return the address object that has the control interface

(self)

Source from the content-addressed store, hash-verified

103 return False
104
105 def get_control_if(self):
106 """
107 Return the address object that has the control interface
108 """
109 for interface in self.get_interfaces():
110 if interface.is_control():
111 return interface
112 return None
113
114 def process(self):
115 for dev in self.dbag:

Callers 1

_collect_ignore_ipsMethod · 0.80

Calls 2

get_interfacesMethod · 0.95
is_controlMethod · 0.80

Tested by

no test coverage detected