diff options
Diffstat (limited to 'test/vpp_pg_interface.py')
-rw-r--r-- | test/vpp_pg_interface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index 1300f1f1f00..81e9714a37a 100644 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -84,10 +84,10 @@ class VppPGInterface(VppInterface): def __init__(self, test, pg_index): """ Create VPP packet-generator interface """ - super(VppPGInterface, self).__init__(test) - r = test.vapi.pg_create_interface(pg_index) - self.set_sw_if_index(r.sw_if_index) + self._sw_if_index = r.sw_if_index + + super(VppPGInterface, self).__init__(test) self._in_history_counter = 0 self._out_history_counter = 0 |