From: Paul Vinciguerra Date: Fri, 30 Nov 2018 20:03:04 +0000 (-0800) Subject: Fix L2BD arp termination Test Case X-Git-Tag: v19.04-rc0~254 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=dd89173cc177f7130eca426eb4fa5737ec59c91d Fix L2BD arp termination Test Case ============================================================================== L2BD arp termination Test Case ============================================================================== 12:02:21,850 Couldn't stat : /tmp/vpp-unittest-TestL2bdArpTerm-_h44qo/stats.sock L2BD arp term - add 5 hosts, verify arp responses OK L2BD arp term - delete 3 hosts, verify arp responses OK L2BD arp term - recreate BD1, readd 3 hosts, verify arp responses OK L2BD arp term - 2 IP4 addrs per host OK L2BD arp term - create and update 10 IP4-mac pairs OK L2BD arp/ND term - hosts with both ip4/ip6 OK L2BD ND term - Add and Del hosts, verify ND replies OK L2BD ND term - Add and update IP+mac, verify ND replies OK L2BD arp term - send garps, verify arp event reports OK L2BD arp term - send duplicate garps, verify suppression OK L2BD arp term - disable ip4 arp events,send garps, verify no events OK L2BD ND term - send NS packets verify reports OK L2BD ND term - send duplicate ns, verify suppression OK L2BD ND term - disable ip4 arp events,send ns, verify no events OK ============================================================================== TEST RESULTS: Scheduled tests: 14 Executed tests: 14 Passed tests: 14 ============================================================================== Test run was successful Change-Id: I6bb1ced11b88080ffaa845d22b0bc471c4f91683 Signed-off-by: Paul Vinciguerra --- diff --git a/test/vpp_mac.py b/test/vpp_mac.py index c0e69746175..27814cdc761 100644 --- a/test/vpp_mac.py +++ b/test/vpp_mac.py @@ -21,19 +21,23 @@ class VppMacAddress(): @property def address(self): - return self.addr.address + return self.address + + @address.setter + def address(self, value): + self.address = value def __str__(self): return self.address def __eq__(self, other): if isinstance(other, self.__class__): - return self.address == other.addres + return self.address == other.address elif hasattr(other, "bytes"): # vl_api_mac_addres_t return self.bytes == other.bytes else: - raise Exception("Comparing VppMacAddress:%s" + raise TypeError("Comparing VppMacAddress:%s" "with unknown type: %s" % (self, other)) return False