diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/memif/test/vpp_memif.py | 7 |
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 |