papi: enhance MACAddress() equality 82/23382/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 12 Nov 2019 17:11:00 +0000 (12:11 -0500)
committerOle Trøan <otroan@employees.org>
Wed, 13 Nov 2019 09:43:04 +0000 (09:43 +0000)
commit6af62565e34f90fc0f9811c14753996a2d14ab16
tree2cd872bdf04d953fab89134afcfc7ebc151fe5be
parent44d06916b9654f393176e9fa85d0442184decbea
papi: enhance MACAddress() equality

Allows for comparison without needing str(MACAddress())

 Traceback (most recent call last):
  File "/vpp/test/test_ip6.py", line 1074, in test_icmpv6_echo
    self.assertEqual(ether.dst, self.pg0.remote_mac)
 AssertionError: '02:01:00:00:ff:02' != MACAddress(02:01:00:00:ff:02)

Type: feature

Change-Id: Ife1cbfc74d477695d15b33a19da7dd2fa241a348
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vpp-api/python/vpp_papi/macaddress.py