diff options
author | Matej Klotton <mklotton@cisco.com> | 2016-12-22 11:06:56 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-01-09 13:33:39 +0000 |
commit | 8d8a1da52907246c3218ea7c60ab8ca0569d0a83 (patch) | |
tree | d988a4071df8bcf65d604587dfa69c4d6c331b25 /test/vpp_papi_provider.py | |
parent | 0120e235ad0103c1318b6be5065d79d372439bba (diff) |
make test: Loopback interface CRUD test
Change-Id: I0581da7a682bfe4dd6520ecf1b2ea6bd8c20b1b3
Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index bdbcc3d27f1..db530d98113 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -465,6 +465,10 @@ class VppPapiProvider(object): return self.api(self.papi.create_loopback, {'mac_address': mac}) + def delete_loopback(self, sw_if_index): + return self.api(self.papi.delete_loopback, + {'sw_if_index': sw_if_index, }) + def ip_add_del_route( self, dst_address, @@ -904,8 +908,8 @@ class VppPapiProvider(object): """ :param is_add: :param mask: - :param match_n_vectors (Default value = 1): - :param table_index (Default value = 0xFFFFFFFF) + :param match_n_vectors: (Default value = 1): + :param table_index: (Default value = 0xFFFFFFFF) :param nbuckets: (Default value = 2) :param memory_size: (Default value = 2097152) :param skip_n_vectors: (Default value = 0) |