aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/libraries/python/SFC/VerifyPacket.py3
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))