INNER CODE UNIT · Python
_get_role
faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:137
def _get_role(endpoint):
roles, _, _ = endpoint.get_roles_confidences_pcap_labels()
return roles[0]
@staticmethod
def _get_role_confidence(endpoint):
_, confidences, _ = endpoint.get_roles_confidences_pcap_labels()
return str(confidences[0])
@staticmethod
def _get_pcap_labels(endpoint):
_, _, pcap_labels = endpoint.get_roles_confidences_pcap_labels()
return pcap_labels
@staticmethod
def _get_ipv4_os(endpoint):
endpoint_ip = GetData._get_ipv4(endpoint)
ipv4_addresses = endpoint.metadata.get("ipv4_addresses", None)