aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dns/dns.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-09-27 09:07:51 +0200
committerNeale Ranns <nranns@cisco.com>2019-09-27 09:05:29 +0000
commitb922f16ba532d09f920776a04117e41f173dec8e (patch)
tree07456d2b44c86e39da92cc7805835450aaa2fa80 /src/plugins/dns/dns.api
parent9f3d21170a3c408707e07e4f3ffbee2fd27c2b03 (diff)
dns: remove api boilerplate
Type: refactor Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ifffa86b45dd1f213ba974a296ab64202b672a6df
Diffstat (limited to 'src/plugins/dns/dns.api')
-rw-r--r--src/plugins/dns/dns.api4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dns/dns.api b/src/plugins/dns/dns.api
index a4faec6bbb5..866ed8abae3 100644
--- a/src/plugins/dns/dns.api
+++ b/src/plugins/dns/dns.api
@@ -25,6 +25,7 @@ autoreply manual_print define dns_enable_disable {
u32 client_index;
u32 context;
u8 enable;
+ option vat_help = "[enable][disable]";
};
/** \brief add or delete an upstream name server
@@ -41,6 +42,7 @@ autoreply manual_print define dns_name_server_add_del {
u8 is_ip6;
u8 is_add;
u8 server_address[16];
+ option vat_help = "<ip-address> [del]";
};
/** \brief DNS name resolution request
@@ -53,6 +55,7 @@ manual_print define dns_resolve_name {
u32 client_index;
u32 context;
u8 name[256];
+ option vat_help = "<hostname>";
};
/** \brief DNS name resolution reply
@@ -86,6 +89,7 @@ manual_print define dns_resolve_ip {
u32 context;
u8 is_ip6;
u8 address[16];
+ option vat_help = "<ip4|ip6>";
};
/** \brief DNS ip->name resolution reply