INNER CODE UNIT · Python
_get_controller_type
faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:94
def _get_controller_type(endpoint):
if "controller_type" in endpoint.endpoint_data:
return str(endpoint.endpoint_data["controller_type"])
return NO_DATA
@staticmethod
def _get_controller(endpoint):
if "controller" in endpoint.endpoint_data:
return str(endpoint.endpoint_data["controller"])
return NO_DATA
@staticmethod
def _get_ignored(endpoint):
return str(endpoint.ignore)
@staticmethod
def _get_state(endpoint):
return endpoint.state