INNER CODE UNIT · Python

GetData

faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:29

class GetData:
    @staticmethod
    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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…