aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-12-06 21:40:38 -0500
committerNeale Ranns <nranns@cisco.com>2019-12-23 07:35:04 +0000
commita25a8576cd69e1a47978c7ccd6a408248fc79a14 (patch)
treee5a47fec1d65ce4e6211712948a563b73c70f6a8 /src/plugins
parent548d5ee7336dc114d58e24dcae9a9ba3658d8410 (diff)
tests: vpp_memif fix formatting error in exception
Type: test Change-Id: I2d32797efd1c3478a862b7950ef9ab63428da890 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/test/vpp_memif.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/memif/test/vpp_memif.py b/src/plugins/memif/test/vpp_memif.py
index 3ccbb68970b..9afed6fb63c 100644
--- a/src/plugins/memif/test/vpp_memif.py
+++ b/src/plugins/memif/test/vpp_memif.py
@@ -91,13 +91,10 @@ class VppMemif(VppObject):
buffer_size=self.buffer_size,
hw_addr=self.hw_addr)
try:
- self.sw_if_index = 0
- except AttributeError:
- raise AttributeError('self: %s' % self.__dict__)
- try:
self.sw_if_index = rv.sw_if_index
except AttributeError:
- raise AttributeError("%s %s", self, rv)
+ # rv doesn't have .sw_if_index attribute
+ raise AttributeError("%s %s" % (self, rv))
return self.sw_if_index