Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PAPI: Add MACAddress object wrapper for vl_api_mac_address_t
[vpp.git]
/
test
/
test_l2bd_arp_term.py
diff --git
a/test/test_l2bd_arp_term.py
b/test/test_l2bd_arp_term.py
index
92942d3
..
2321aa7
100644
(file)
--- a/
test/test_l2bd_arp_term.py
+++ b/
test/test_l2bd_arp_term.py
@@
-19,9
+19,7
@@
from scapy.layers.inet6 import IPv6, UDP, ICMPv6ND_NS, ICMPv6ND_RS, \
ICMPv6ND_NA, ICMPv6NDOptDstLLAddr, ICMPv6DestUnreach, icmp6types
from framework import VppTestCase, VppTestRunner
ICMPv6ND_NA, ICMPv6NDOptDstLLAddr, ICMPv6DestUnreach, icmp6types
from framework import VppTestCase, VppTestRunner
-from util import Host, ppp, mactobinary
-from vpp_mac import VppMacAddress
-from vpp_ip import VppIpAddress
+from util import Host, ppp
class TestL2bdArpTerm(VppTestCase):
class TestL2bdArpTerm(VppTestCase):
@@
-73,8
+71,8
@@
class TestL2bdArpTerm(VppTestCase):
for e in entries:
ip = e.ip4 if is_ipv6 == 0 else e.ip6
self.vapi.bd_ip_mac_add_del(bd_id=bd_id,
for e in entries:
ip = e.ip4 if is_ipv6 == 0 else e.ip6
self.vapi.bd_ip_mac_add_del(bd_id=bd_id,
- mac=
VppMacAddress(e.mac).encode()
,
- ip=
VppIpAddress(ip).encode()
,
+ mac=
e.mac
,
+ ip=
ip
,
is_ipv6=is_ipv6,
is_add=is_add)
is_ipv6=is_ipv6,
is_add=is_add)