Fix the NSH SFC functional test failed issue. 37/9037/1
authorFangyin Hu <fangyinx.hu@intel.com>
Thu, 26 Oct 2017 09:21:38 +0000 (02:21 -0700)
committerTibor Frank <tifrank@cisco.com>
Thu, 26 Oct 2017 08:04:52 +0000 (08:04 +0000)
Change-Id: If118254b6479f7ffb3e0b4f81d3585b4b90cc92c
Signed-off-by: Fangyin Hu <fangyinx.hu@intel.com>
(cherry picked from commit 751a5aed2cac6bd7b87028eaf7eab1a8f87fface)

resources/libraries/python/SFC/VerifyPacket.py

index 84eb6aa..90dfd37 100644 (file)
@@ -110,8 +110,7 @@ class VerifyPacket(object):
             raise RuntimeError("Unexpected NSH version: {0}".
                                format(nsh_pkt.Version))
 
             raise RuntimeError("Unexpected NSH version: {0}".
                                format(nsh_pkt.Version))
 
-        print type(nsh_pkt.OAM)
-        if nsh_pkt.OAM != 0 or nsh_pkt.OAM != 1:
+        if nsh_pkt.OAM != 0 and nsh_pkt.OAM != 1:
             raise RuntimeError("Unexpected NSH OAM: {0}".
                                format(nsh_pkt.OAM))
 
             raise RuntimeError("Unexpected NSH OAM: {0}".
                                format(nsh_pkt.OAM))
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.