def METHOD_NAME(host, asic=None):
    cmd_prefix = " "
    if host.is_multi_asic and asic is not None:
        ns = host.get_namespace_from_asic_id(asic.asic_index)
        cmd_prefix = "sudo ip netns exec {} ".format(ns)
    cmd = "{} ls /sys/class/net/".format(cmd_prefix)
    output = host.command(cmd)["stdout_lines"]
    ports = {
        "Ethernet": [],
        "eth": [],
        "macsec": [],
    }
    for type in list(ports.keys()):
        ports[type] = [port
                       for port in output if port.startswith(type)]
        ports[type].sort(key=lambda no: int(re.search(r'\d+', no).group(0)))
    # Remove the eth0
    ports["eth"].pop(0)
    return ports