Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
cnat: add ip/client bihash
[vpp.git]
/
test
/
vpp_udp_decap.py
diff --git
a/test/vpp_udp_decap.py
b/test/vpp_udp_decap.py
index
2bd03ce
..
3231826
100644
(file)
--- a/
test/vpp_udp_decap.py
+++ b/
test/vpp_udp_decap.py
@@
-8,19
+8,10
@@
from socket import inet_pton, inet_ntop, AF_INET, AF_INET6
class VppUdpDecap(VppObject):
class VppUdpDecap(VppObject):
-
- def __init__(self,
- test,
- is_ip4,
- dst_port,
- next_proto):
+ def __init__(self, test, is_ip4, dst_port, next_proto):
self._test = test
self.active = False
self._test = test
self.active = False
- self.udp_decap = {
- 'is_ip4': is_ip4,
- 'port': dst_port,
- 'next_proto': next_proto
- }
+ self.udp_decap = {"is_ip4": is_ip4, "port": dst_port, "next_proto": next_proto}
def add_vpp_config(self):
self._test.vapi.udp_decap_add_del(True, self.udp_decap)
def add_vpp_config(self):
self._test.vapi.udp_decap_add_del(True, self.udp_decap)