[dts] [PATCH] tests/vxlan: correct the attribute name of UDP object

Herbert Guan herbert.guan at arm.com
Fri Dec 15 06:58:59 CET 2017


outer[UDP] does not have attributes of 'dst'/'src', but has 'dport'
'sport' instead.  This patch corrects this typo.

Signed-off-by: Herbert Guan <herbert.guan at arm.com>
---
 tests/TestSuite_vxlan.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 7c70e30..b1f6f10 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -168,8 +168,8 @@ class VxlanTestConfig(object):
             outer[outer_l3.name].src = self.outer_ip_src
             outer[outer_l3.name].dst = self.outer_ip_dst
 
-        outer[UDP].src = self.outer_udp_src
-        outer[UDP].dst = self.outer_udp_dst
+        outer[UDP].sport = self.outer_udp_src
+        outer[UDP].dport = self.outer_udp_dst
 
         if self.outer_ip_invalid == 1:
             outer[outer_l3.name].chksum = 0
-- 
1.8.3.1



More information about the dts mailing list