test: ip6 vrf instances multi-context test (CSIT-497)
- add/delete IPv6 VRF instances and verify results by parsing output of ip6_fib_dump API command and by traffic - small changes in assert_nothing_captured and get_capture to get logged unexpected packets Change-Id: I32207447be2df942e335aa9890ff52fb88e46597 Signed-off-by: Jan Gelety <jgelety@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
82786c418f
commit
057bb8c3a4
@ -220,6 +220,10 @@ class VppPGInterface(VppInterface):
|
||||
if len(capture.res) == expected_count:
|
||||
# bingo, got the packets we expected
|
||||
return capture
|
||||
elif len(capture.res) > expected_count:
|
||||
self.test.logger.error(
|
||||
ppc("Unexpected packets captured:", capture))
|
||||
break
|
||||
else:
|
||||
self.test.logger.debug("Partial capture containing %s "
|
||||
"packets doesn't match expected "
|
||||
@ -251,8 +255,6 @@ class VppPGInterface(VppInterface):
|
||||
if not capture or len(capture.res) == 0:
|
||||
# junk filtered out, we're good
|
||||
return
|
||||
self.test.logger.error(
|
||||
ppc("Unexpected packets captured:", capture))
|
||||
except:
|
||||
pass
|
||||
self.generate_debug_aid("empty-assert")
|
||||
|
Reference in New Issue
Block a user