test_plans: change mpls packet format
diff mbox series

Message ID 1597152235-167895-1-git-send-email-yuan.peng@intel.com
State Accepted
Headers show
Series
  • test_plans: change mpls packet format
Related show

Commit Message

Peng, Yuan Aug. 11, 2020, 1:23 p.m. UTC
add MPLS label to MPLS packet

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

Comments

Tu, Lijuan Aug. 13, 2020, 3:04 a.m. UTC | #1
> Subject: [dts] [PATCH]test_plans: change mpls packet format
> 
> add MPLS label to MPLS packet
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>

Applied

Patch
diff mbox series

diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_test_plan.rst
index eb35b8c5..b2c35535 100644
--- a/test_plans/iavf_fdir_test_plan.rst
+++ b/test_plans/iavf_fdir_test_plan.rst
@@ -163,6 +163,7 @@  Prerequisites
     >>> sys.path.append('/root')
     >>> from pfcp import PFCP
     >>> from scapy.contrib.gtp import *
+    >>> from scapy.contrib.mpls import *
 
 
 Default parameters
@@ -1446,7 +1447,7 @@  Subcase 1: L2 Ethertype queue index
 
 6. send a mismatched packet::
 
-    sendp([Ether(dst="00:11:22:33:44:55",type=0x8847)],iface="enp134s0f1")
+    sendp([Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(label=0xee456)/IP()],iface="enp134s0f1")
 
    check the packet received has not FDIR matched ID.