Hands-On Networking Thorsten Herfet, Andreas Schmidt, Frank Waßmuth

News

Error in LLDP Unit Test: MAC Address Casing

Written: 24.03.2017 14:35 Written By: Andreas Schmidt

We've been alerted to an error regarding MAC address casing in one of the unit tests provided with the LLDP project.

We have fixed the tests, which you can now also download individually from the materials section. The full agent zip is also updated.

The last line of function test_receive in agent_tests.py is now:

self.assertEqual(printed_message, "LLDPMessage(src_mac=01:23:45:67:89:AD,chassis_id=01:23:45:67:89:AB,port_id=01:23:45:67:89:AB,ttl=120)\n")

Please note the changed casing for src_mac.



Privacy Policy | Legal Notice
If you encounter technical problems, please contact the administrators