aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/qos/qos.api
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-09-05 09:36:05 -0700
committerDamjan Marion <dmarion@me.com>2018-09-06 08:14:02 +0000
commited234e7f151b05a5b8375dbd9f0add24fe8ebf2f (patch)
tree9020f898ce9e3133ee566f321a72e31a538c6d51 /src/vnet/qos/qos.api
parenta7f8b228ff505acc052a77101b12e714ead26536 (diff)
Enum type on the API for QoS sources
Change-Id: I877541ede6e26581c659821502f23b777903b82f Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/qos/qos.api')
-rw-r--r--src/vnet/qos/qos.api15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/vnet/qos/qos.api b/src/vnet/qos/qos.api
index a7bd19acc9e..720c41789bd 100644
--- a/src/vnet/qos/qos.api
+++ b/src/vnet/qos/qos.api
@@ -1,5 +1,6 @@
+/* Hey Emacs use -*- mode: C -*- */
/*
- * Copyright (c) 2016 Cisco and/or its affiliates.
+ * Copyright (c) 2018 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -21,6 +22,14 @@
option version = "1.0.0";
+enum qos_source
+{
+ QOS_API_SOURCE_EXT = 0,
+ QOS_API_SOURCE_VLAN = 1,
+ QOS_API_SOURCE_MPLS = 2,
+ QOS_API_SOURCE_IP = 3,
+};
+
/** \brief Enable/Disable QoS recording
The QoS bits from the packet at the specified input layer are copied
into the packet. Recording should be used in conjunction with marking
@@ -34,7 +43,7 @@ autoreply define qos_record_enable_disable
u32 client_index;
u32 context;
u32 sw_if_index;
- u8 input_source;
+ vl_api_qos_source_t input_source;
u8 enable;
};
@@ -89,7 +98,7 @@ autoreply define qos_mark_enable_disable
u32 context;
u32 map_id;
u32 sw_if_index;
- u8 output_source;
+ vl_api_qos_source_t output_source;
u8 enable;
};