INNER CODE UNIT · Python
_get_controller
faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:100
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
@staticmethod
def _get_next_state(endpoint):
return str(endpoint.p_next_state)
@staticmethod