diff options
author | Ole Troan <ot@cisco.com> | 2019-09-25 18:42:47 +0200 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2019-09-30 10:40:16 +0200 |
commit | ee98904e0c0357f75fa019ed7b9f0f4eda480377 (patch) | |
tree | 43d5624505029dd39672ae418e6027cadfd40ab7 /src/plugins/ct6/ct6.api | |
parent | 0aa35a7fad65236eb2d7845169690f1b809217c7 (diff) |
ct6: remove api boilerplate
Type: refactor
Change-Id: Ibf00279d8065e7ef4fc06e8b9946dcc7bfd647de
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/ct6/ct6.api')
-rw-r--r-- | src/plugins/ct6/ct6.api | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/ct6/ct6.api b/src/plugins/ct6/ct6.api index 67af42fd9fe..10a28251a20 100644 --- a/src/plugins/ct6/ct6.api +++ b/src/plugins/ct6/ct6.api @@ -1,7 +1,7 @@ /* Define a simple enable-disable binary API to control the feature */ -define ct6_enable_disable { +autoreply define ct6_enable_disable { /* Client identifier, set from api_main.my_client_index */ u32 client_index; @@ -16,12 +16,5 @@ define ct6_enable_disable { /* Interface handle */ u32 sw_if_index; -}; - -define ct6_enable_disable_reply { - /* From the request */ - u32 context; - - /* Return value, zero means all OK */ - i32 retval; + option vat_help = "<intfc> [disable]"; }; |