scale-network icon indicating copy to clipboard operation
scale-network copied to clipboard

Create lldp fake neighbors test for openwrt

Open sarcasticadmin opened this issue 6 years ago • 0 comments

Description

Relates to #33

There should be a good way to fake a neighbor in lldp to confirm that the agent in our openwrt img is working correctly. We might be able to use a library called scapy

Related resources:

  • https://github.com/vincentbernat/lldpd/blob/master/tests/many-neighbors.py
  • https://github.com/secdev/scapy/blob/master/scapy/contrib/lldp.py
  • https://montcs.bloomu.edu/VM-LAN/LAN04.asn.scapy.html
  • https://sourceforge.net/projects/lldpgenerator/ (uses scapy as library)
    • https://www.trickster.dev/post/scapy-low-level-packet-hacking-toolkit-for-python/ (example of scapy)

Acceptance Criteria

  • lldp agent on openwrt is testable
  • able to incorporate into serverspec tests

sarcasticadmin avatar Jan 08 '20 09:01 sarcasticadmin