aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipfix-export/ipfix_export.api
diff options
context:
space:
mode:
authorPaul Atkins <patkins@graphiant.com>2021-09-23 09:28:50 +0100
committerNeale Ranns <neale@graphiant.com>2021-11-22 09:30:09 +0000
commitacb0d2d1356b69c4be1c8f571d5b17567ba0f0cf (patch)
treeac5c005a82e1238c265fc3afb00977edbe598b22 /src/vnet/ipfix-export/ipfix_export.api
parentd747dd9501b97d90b51961a8a1716ab66a2400e1 (diff)
ipfix-export: add a new API to dump all exporters
Add a new API to dump all the exporters. As the destination struct type is not the same as for the existing dump/details API no attempt is made to use the existing code to populate the structure. Type: improvement Signed-off-by: Paul Atkins <patkins@graphiant.com> Change-Id: I409f80285b107a530e0e4f3c6a047a803815a0ec
Diffstat (limited to 'src/vnet/ipfix-export/ipfix_export.api')
-rw-r--r--src/vnet/ipfix-export/ipfix_export.api36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/vnet/ipfix-export/ipfix_export.api b/src/vnet/ipfix-export/ipfix_export.api
index 2b1da36b581..8a9d5b13124 100644
--- a/src/vnet/ipfix-export/ipfix_export.api
+++ b/src/vnet/ipfix-export/ipfix_export.api
@@ -73,7 +73,6 @@ define ipfix_exporter_details
bool udp_checksum;
};
-
/** Configure IPFIX exporter within the exporting process.
The exporting process can contain multiple independent exporters,
each of which have their own state. The collector_address is the key
@@ -113,6 +112,41 @@ define ipfix_exporter_create_delete_reply {
u32 stat_index;
};
+service {
+ rpc ipfix_all_exporter_get returns ipfix_all_exporter_get_reply
+ stream ipfix_all_exporter_details;
+};
+
+define ipfix_all_exporter_get
+{
+ u32 client_index;
+ u32 context;
+ u32 cursor;
+};
+
+define ipfix_all_exporter_get_reply
+{
+ u32 context;
+ i32 retval;
+ u32 cursor;
+};
+
+/** \brief Ipfix meter details in response to the get_meters command
+ @param context - sender context, to match reply w/ request
+ @param name The name of the ipfix meter
+*/
+define ipfix_all_exporter_details
+{
+ u32 context;
+ vl_api_address_t collector_address;
+ u16 collector_port;
+ vl_api_address_t src_address;
+ u32 vrf_id;
+ u32 path_mtu;
+ u32 template_interval;
+ bool udp_checksum;
+};
+
/** \brief IPFIX classify stream configure request
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request