Skip to content

dimsh99/lldpad

Repository files navigation

lldpad Cookbook

This cookbooks contains recipes and custom resource to install and configure lldpad

Requirements

Platforms

  • centos - not fully tested on centos, but should work
  • redhat - not fully tested on redhat, but should work
  • fedora - not fully tested on redhat, but should work
  • scientific - not fully tested on scientific, but should work
  • ubuntu - not fully tested on ubuntu, but should work
  • debian - not fully tested on debian, but should work

Chef

  • Chef 12.0 or later

Attributes

lldpad::default

Key Type Description Default
['lldpad']['install_on_vm_guest'] Boolean whether to install lldpad on virtual machines false
['lldpad']['disabled_int_type'] Array Types of interfaces that should be disabled (adminStatus=disabled) %w(team bond)
['lldpad']['ignored_int_type'] Array Types of interfaces that should be left unconfigured %w(docker)
['lldpad']['adminStatus'] Symbol Default lldp setting for interface. :rx - Receive lldp packets :tx - Transmit lldp packets :rxtx - Receive and transmit lldp packets :disabled - lldp doesn't work on this interface :rxtx
['lldpad']['sysName'] Boolean Whether to transmit System Name TLV true
['lldpad']['sysDesc'] Boolean Whether to transmit System Description TLV true
['lldpad']['sysCap'] Boolean Whether to transmit System Caption TLV true
['lldpad']['portDesc'] Boolean Whether to transmit Port Description TLV true
['lldpad']['portID']['enableTx'] Boolean Whether to transmit Port ID TLV true
['lldpad']['portID']['subtype'] Symbol Value of Port ID TLV to be transmitted
:PORT_ID_INTERFACE_NAME - Interface name
:PORT_ID_MAC_ADDRESS - Mac address
:PORT_ID_NETWORK_ADDRESS - IP address
:PORT_ID_INTERFACE_NAME
['lldpad']['chassisID']['enableTx'] Boolean Whether to transmit Chassis ID TLV true
['lldpad']['chassisID']['subtype'] Symbol Value of Port ID TLV to be transmitted
:CHASSIS_ID_INTERFACE_NAME - Interface name
:CHASSIS_ID_MAC_ADDRESS - Mac address
:CHASSIS_ID_NETWORK_ADDRESS - IP address
:PORT_ID_MAC_ADDRESS

Usage

lldpad::default

Just include lldpad in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[lldpad]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Dmitry Shestoperov

About

Chef cookbook to install lldpad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages