INNER CODE UNIT · Python
_get_name
faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:31
def _get_name(endpoint):
return endpoint.machine.name.strip()
@staticmethod
def _get_mac(endpoint):
return endpoint.endpoint_data["mac"]
@staticmethod
def _get_switch(endpoint):
return endpoint.endpoint_data["segment"]
@staticmethod
def _get_port(endpoint):
return endpoint.endpoint_data["port"]
@staticmethod
def _get_vlan(endpoint):
vlan = str(endpoint.endpoint_data["vlan"])