def get_lldp_info(interface_names):
    with RawPromiscuousSockets(interface_names, LLDP_ETHERTYPE) as interfaces:
        try:
            return _get_lldp_info(interfaces)
        except Exception as e:
            LOG.exception('Error while getting LLDP info: %s', str(e))
            raise
Get LLDP info from the switch(es) the agent is connected to.
dataset/ETHPy150Open openstack/ironic-python-agent/ironic_python_agent/netutils.py/get_lldp_info