diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2024-10-03 23:18:17 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2024-10-07 08:39:23 +0000 |
commit | 0b1bd9df33c02585e3be2fe048e5427b9574b699 (patch) | |
tree | bf3e5d8094eaf47d7ac56a094fc3a828ec7bbe4d /test/vpp_pg_interface.py | |
parent | 28955ceb8bb95ae05f5fce78ed3e9fec7e4bede6 (diff) |
pg: add support to delete pg interface
Type: improvement
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I3102fded415c644673fb79a0fdb7a7448ce20f26
Diffstat (limited to 'test/vpp_pg_interface.py')
-rw-r--r-- | test/vpp_pg_interface.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index 1e02801cda9..cd99818caa4 100644 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -147,6 +147,11 @@ class VppPGInterface(VppInterface): ) self._cap_name = "pcap%u-sw_if_index-%s" % (self.pg_index, self.sw_if_index) + def remove_vpp_config(self): + """delete Pg interface""" + self.disable_capture() + self.test.vapi.pg_delete_interface(sw_if_index=self.sw_if_index) + def link_pcap_file(self, path, direction, counter): if not config.keep_pcaps: return |