aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/qos
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/qos')
-rw-r--r--src/vnet/qos/qos_store.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/qos/qos_store.c b/src/vnet/qos/qos_store.c
index 18e79a33653..06336434e5d 100644
--- a/src/vnet/qos/qos_store.c
+++ b/src/vnet/qos/qos_store.c
@@ -168,6 +168,7 @@ qos_store_cli (vlib_main_t * vm,
qs = 0xff;
enable = 1;
sw_if_index = ~0;
+ value = ~0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
@@ -188,6 +189,8 @@ qos_store_cli (vlib_main_t * vm,
if (~0 == sw_if_index)
return clib_error_return (0, "interface must be specified");
+ if (~0 == value)
+ return clib_error_return (0, "value to be stored must be specified");
if (0xff == qs)
return clib_error_return (0, "input location must be specified");