summaryrefslogtreecommitdiffstats
path: root/src/plugins/http_static/http_static.api
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-05-18 22:09:28 -0400
committerOle Trøan <otroan@employees.org>2019-05-29 07:40:56 +0000
commit68b24e2c9ae80839d15f680959cce31ca3ec2123 (patch)
tree2ae49e41e5e64509c0dfdeb02b20819d15f97e7b /src/plugins/http_static/http_static.api
parent883a8672c14085b61450599188d04317c45f5d12 (diff)
plugins: http_static. Migrate to use api string type.
This is not my core competency. Reviews/feedback/suggestions welcomed. ;) Tested with: rv = self.vapi.http_static_enable( fifo_size = 1, cache_size_limit = 1000000, prealloc_fifos = 0, private_segment_size = 0, uri="tcp://0.0.0.0/80", www_root = "/var/tmp/run/vpp/html" ) DBGvpp# show http static server www_root /var/tmp/run/vpp/html, cache size 0 bytes, limit 1000000 bytes, evictions 0 Change-Id: I0f660753317ceedab89da1b65701a24d6f7145de Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/plugins/http_static/http_static.api')
-rw-r--r--src/plugins/http_static/http_static.api8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/http_static/http_static.api b/src/plugins/http_static/http_static.api
index 1866e38cb47..dc3dcac71ba 100644
--- a/src/plugins/http_static/http_static.api
+++ b/src/plugins/http_static/http_static.api
@@ -1,8 +1,8 @@
/** \file
- This file defines static http servercontrol-plane API messages
+ This file defines static http server control-plane API messages
*/
-option version = "1.0.0";
+option version = "2.0.0";
/** \brief Configure and enable the static http server
@param client_index - opaque cookie to identify the sender
@@ -29,7 +29,7 @@ autoreply define http_static_enable {
u32 private_segment_size;
/* Root of the html path */
- u8 www_root[256];
+ string www_root[limit=256];
/* The bind URI */
- u8 uri[256];
+ string uri[limit=256];
};