summaryrefslogtreecommitdiffstats
path: root/src/vlib/node_cli.c
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2020-03-10 14:35:32 +0000
committerDamjan Marion <dmarion@me.com>2020-04-28 11:10:50 +0000
commit4830e4f78fb8e46b23a1a0711cd06969a77d8d95 (patch)
tree36ff9c5252a62a8b5a50867a31c094c6a1bc1cda /src/vlib/node_cli.c
parenta568a19b2956ed8b94b11c2ef041412473dc8442 (diff)
vlib: startup multi-arch variant configuration
Support for startup node multi-arch variant selection through startup.conf. This is to facilitate unit, functional testing and benchmarking of non-default multi-arch variant node code path. Also added parameters to make test, to specific using multi-arch variants in unit testing. Type: improvement Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I94fd332bb629683b7a7dd770ee9f615a9a424060
Diffstat (limited to 'src/vlib/node_cli.c')
-rw-r--r--src/vlib/node_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/node_cli.c b/src/vlib/node_cli.c
index 0738bc959ce..750f69e5d60 100644
--- a/src/vlib/node_cli.c
+++ b/src/vlib/node_cli.c
@@ -727,7 +727,7 @@ set_node_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd
goto done;
}
- if (!unformat (line_input, "%s", &variant))
+ if (!unformat (line_input, "%U", unformat_vlib_node_variant, &variant))
{
err = clib_error_return (0, "please specify node functional variant");
goto done;