Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix documentation about sw_interface_set_l2_bridge
[vpp.git]
/
test
/
vpp_interface.py
diff --git
a/test/vpp_interface.py
b/test/vpp_interface.py
index
e14a31e
..
1db34ba
100644
(file)
--- a/
test/vpp_interface.py
+++ b/
test/vpp_interface.py
@@
-1,7
+1,7
@@
from abc import abstractmethod, ABCMeta
import socket
from abc import abstractmethod, ABCMeta
import socket
-from util import Host, mk_ll_addr
+from util import Host, mk_ll_addr
, mactobinary
class VppInterface(object):
class VppInterface(object):
@@
-170,6
+170,13
@@
class VppInterface(object):
self._hosts_by_ip4 = {}
self._hosts_by_ip6 = {}
self._hosts_by_ip4 = {}
self._hosts_by_ip6 = {}
+ def set_mac(self, mac):
+ self._local_mac = mac
+ self._local_ip6_ll = mk_ll_addr(mac)
+ self.test.vapi.sw_interface_set_mac_address(
+ self.sw_if_index,
+ mactobinary(self._local_mac))
+
def set_sw_if_index(self, sw_if_index):
self._sw_if_index = sw_if_index
def set_sw_if_index(self, sw_if_index):
self._sw_if_index = sw_if_index