INNER CODE UNIT · Python

_get_switch

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

    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):
        return str(endpoint.acl_data)

    @staticmethod
    def _get_ipv4(endpoint):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…