From 16a14cdb160160573e2d1ed69a52998cc30ce34f Mon Sep 17 00:00:00 2001 From: Matej Klotton Date: Wed, 7 Dec 2016 15:09:13 +0100 Subject: make test: FIB add/update/delete - ip4 routes - JIRA:CSIT-483 Change-Id: Idb4c5bd7a234bc975f3380ece58c0e8d4bfdafd9 Signed-off-by: Matej Klotton --- test/framework.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/framework.py') diff --git a/test/framework.py b/test/framework.py index c91f34f9..2618b267 100644 --- a/test/framework.py +++ b/test/framework.py @@ -40,6 +40,13 @@ class _PacketInfo(object): #: Store the copy of the former packet. data = None + def __eq__(self, other): + index = self.index == other.index + src = self.src == other.src + dst = self.dst == other.dst + data = self.data == other.data + return index and src and dst and data + def pump_output(out, deque): for line in iter(out.readline, b''): -- cgit 1.2.3-korg