Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b7b364c
)
Fix the NSH SFC functional test failed issue.
36/9036/1
author
Fangyin Hu
<fangyinx.hu@intel.com>
Thu, 26 Oct 2017 09:21:38 +0000
(
02:21
-0700)
committer
Fangyin Hu
<fangyinx.hu@intel.com>
Thu, 26 Oct 2017 09:21:38 +0000
(
02:21
-0700)
Change-Id: If118254b6479f7ffb3e0b4f81d3585b4b90cc92c
Signed-off-by: Fangyin Hu <fangyinx.hu@intel.com>
resources/libraries/python/SFC/VerifyPacket.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/SFC/VerifyPacket.py
b/resources/libraries/python/SFC/VerifyPacket.py
index
84eb6aa
..
90dfd37
100644
(file)
--- 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))