+/* 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:
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
@param sw_if_index - The interface on which recording is enabled.
- @param enable - enable=1 or disable the feautre
+ @param enable - enable=1 or disable the feature
@param input_source - The input source/layer at which the QoS bits
are copied from the packet. See qos_source_t.
*/
u32 client_index;
u32 context;
u32 sw_if_index;
- u8 input_source;
+ vl_api_qos_source_t input_source;
u8 enable;
};
into the header of the 'output-source'. Marking should be used in
conjunction with recording
@param sw_if_index - The interface on which recording is enabled.
- @param enable - enable=1 or disable the feautre
+ @param enable - enable=1 or disable the feature
@param output_source - The output source/layer at which the QoS bits
are written into the packet. See qos_source_t.
@param map_id - The ID of the MAP in which the translation from input
u32 context;
u32 map_id;
u32 sw_if_index;
- u8 output_source;
+ vl_api_qos_source_t output_source;
u8 enable;
};