def get_eos_mac(nbr, nbr_intf):
    """
    Gets the MAC address of and interface from an EOS host.

    Args:
        nbr: The element for the neighbor from nbrhosts fixture.
        nbr_intf: The interface name on the neighbor to retrieve the MAC

    Returns:
        A dictionary with the mac address and shell interface name.
    """
    if "port-channel" in nbr_intf.lower():
        # convert Port-Channel1 to po1
        shell_intf = "po" + nbr_intf[-1]
    else:
        # convert Ethernet1 to eth1
        shell_intf = "eth" + nbr_intf[-1]

    output = nbr['host'].command("ip addr show dev %s" % shell_intf)
    # 8: Ethernet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9100 ...
    #     link/ether a6:69:05:fd:da:5f brd ff:ff:ff:ff:ff:ff

    mac = output['stdout_lines'][1].split()[1]
    return {'mac': mac, "shell_intf": shell_intf}