diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2019-09-30 10:26:53 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-09-30 16:47:48 +0000 |
commit | 0fc509343e43adf97f1b474254f601b3e55ac36f (patch) | |
tree | b64c9a906c9fc867ad8a4608496bf17d487035ec | |
parent | 63c735362d3758677c535196885c7acfa0a82efa (diff) |
dhcp: dhcp6_ia_na_client_cp API cleanup
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>
-rw-r--r-- | src/vnet/dhcp/dhcp6_ia_na_client_cp.api | 8 | ||||
-rw-r--r-- | test/vpp_papi_provider.py | 6 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/vnet/dhcp/dhcp6_ia_na_client_cp.api b/src/vnet/dhcp/dhcp6_ia_na_client_cp.api index 6dd67384aec..caa4fd4afc8 100644 --- a/src/vnet/dhcp/dhcp6_ia_na_client_cp.api +++ b/src/vnet/dhcp/dhcp6_ia_na_client_cp.api @@ -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; }; /* diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index e38b262eda7..13babf28a51 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -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, |