Configure OpenLLDP or lldpd, as appropriate

MIT Computer Science & Artificial Intelligence Lab



9,129 latest version

3.5 quality score

Version information

  • 0.0.3 (latest)
  • 0.0.2
released Jul 9th 2013

Start using this module


csail/lldp — version 0.0.3 Jul 9th 2013


This module supports either of two LLDP daemons: OpenLLDP and luffy.cx's LLDP. The latter is superior and should be used wherever it is available. Currently only Debian (lldpd) and FreeBSD (OpenLLDP) are supported, but adding other systems should be trivial (all we need to know is the correct service and package name).

It also defines custom facts based on the LLDP neighbors of the client. These are primarily intended for storing in PuppetDB, but may also be used in manifests. Be aware, however, that LLDP information may expire on the client in the course of normal operation, so decisions should not be made on the basis of the absence of LLDP data. The particular facts defined depend on the LLDP implementation; lldpd provides a greater variety of information than OpenLLDP does. Both implementations will provide switch MAC address (chassis_mac), name, and port description (port_desc) when these variables are provided by the link partner. The fact lldp_neighbors is a comma-separated list of integers (since Puppet lacks a for loop) representing the index assigned to each LLDP neighbor; if the client has more than one interface (or more than one neighbor on a single interface), they will be numbered in an unpredictable order.

A virtual monit::monitor (tag => default) is set up for lldpd; because OpenLLDP does not write a pidfile, we can't use monit::monitor for it. This assumes that you have our version of the monit module, or else that you realize virtual monit::monitor resources in some other way. (We believe that it should be the monit module's responsibility to do this.)

N.B.: On FreeBSD, a pkgng package provider is required.


See the file LICENSE.