aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-30 12:03:04 -0800
committerOle Trøan <otroan@employees.org>2018-11-30 21:03:36 +0000
commitdd89173cc177f7130eca426eb4fa5737ec59c91d (patch)
treea170d0135e5b514cdb6baac2efcac883f1ef8519
parent7fff3d205463d5e0a95d6bdd337100988ef323a3 (diff)
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 <pvinci@vinciconsulting.com>
-rw-r--r--test/vpp_mac.py10
1 files changed, 7 insertions, 3 deletions
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