summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2017-03-02 15:22:47 +0100
committerOle Trøan <otroan@employees.org>2017-03-13 13:17:00 +0000
commit59dda065bb92d1588824483ed5e7cf9adb228d3a (patch)
treeb28faee1197262a038bfee4acee1568ff9c98468 /test/framework.py
parent557a71c89bcc7b8dff5522f7496527a26ae5bcb4 (diff)
ACL plugin rejects ICMP messages (VPP-624)
Change-Id: I95113a277b94cce5ff332fcf9f57ec6f385acec0 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py
index a0284e37c28..d7a0026412b 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -50,6 +50,10 @@ class _PacketInfo(object):
#: Store the index of the destination packet generator interface
#: of the packet.
dst = -1
+ #: Store expected ip version
+ ip = -1
+ #: Store expected upper protocol
+ proto = -1
#: Store the copy of the former packet.
data = None
@@ -515,7 +519,8 @@ class VppTestCase(unittest.TestCase):
:returns: string containing serialized data from packet info
"""
- return "%d %d %d" % (info.index, info.src, info.dst)
+ return "%d %d %d %d %d" % (info.index, info.src, info.dst,
+ info.ip, info.proto)
@staticmethod
def payload_to_info(payload):
@@ -532,6 +537,8 @@ class VppTestCase(unittest.TestCase):
info.index = int(numbers[0])
info.src = int(numbers[1])
info.dst = int(numbers[2])
+ info.ip = int(numbers[3])
+ info.proto = int(numbers[4])
return info
def get_next_packet_info(self, info):