dhcp: dhcp6_ia_na_client_cp API cleanup 94/22394/3
authorJakub Grajciar <jgrajcia@cisco.com>
Mon, 30 Sep 2019 08:26:53 +0000 (10:26 +0200)
committerOle Trøan <otroan@employees.org>
Mon, 30 Sep 2019 16:47:48 +0000 (16:47 +0000)
Use consistent API types.

Type: fix

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: Ie2d2c74ed3832d137e808e0b52348b4e660feb6f
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
src/vnet/dhcp/dhcp6_ia_na_client_cp.api
test/vpp_papi_provider.py

index 6dd6738..caa4fd4 100644 (file)
@@ -13,7 +13,9 @@
  * limitations under the License.
  */
 
-option version = "1.0.0";
+option version = "1.0.1";
+
+import "vnet/interface_types.api";
 
 /** \brief Enable/disable DHCPv6 client on interface
     @param client_index - opaque cookie to identify the sender
@@ -25,8 +27,8 @@ autoreply define dhcp6_client_enable_disable
 {
   u32 client_index;
   u32 context;
-  u32 sw_if_index;
-  u8 enable;
+  vl_api_interface_index_t sw_if_index;
+  bool enable;
 };
 
 /*
index e38b262..13babf2 100644 (file)
@@ -437,12 +437,6 @@ class VppPapiProvider(object):
                          'n_prefixes': len(prefixes),
                          'prefixes': prefixes})
 
-    def dhcp6_client_enable_disable(self, sw_if_index, prefix_group='',
-                                    enable=1):
-        return self.api(self.papi.dhcp6_client_enable_disable,
-                        {'sw_if_index': sw_if_index,
-                         'enable': enable})
-
     def dhcp6_pd_client_enable_disable(self, sw_if_index, prefix_group='',
                                        enable=1):
         return self.api(self.papi.dhcp6_pd_client_enable_disable,