diff options
author | Fangyin Hu <fangyinx.hu@intel.com> | 2017-10-26 02:21:38 -0700 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-10-26 08:04:52 +0000 |
commit | c6a49fe4456f4a96f12359adf27e3002a68ae541 (patch) | |
tree | 1ef7a12324f4e9821adf103df64e1d35b6e04ffd /resources/libraries/python/SFC | |
parent | eb9eec208b6e66bf585546ffe5a9554a48fe1208 (diff) |
Fix the NSH SFC functional test failed issue.
Change-Id: If118254b6479f7ffb3e0b4f81d3585b4b90cc92c
Signed-off-by: Fangyin Hu <fangyinx.hu@intel.com>
(cherry picked from commit 751a5aed2cac6bd7b87028eaf7eab1a8f87fface)
Diffstat (limited to 'resources/libraries/python/SFC')
-rw-r--r-- | resources/libraries/python/SFC/VerifyPacket.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/libraries/python/SFC/VerifyPacket.py b/resources/libraries/python/SFC/VerifyPacket.py index 84eb6aa0a2..90dfd375ca 100644 --- a/resources/libraries/python/SFC/VerifyPacket.py +++ b/resources/libraries/python/SFC/VerifyPacket.py @@ -110,8 +110,7 @@ class VerifyPacket(object): 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)) |