INNER CODE UNIT · Python
_get_mac
faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:35
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"])
return vlan.split("VLAN")[1] if vlan.startswith("VLAN") else vlan
@staticmethod
def _get_acls(endpoint):