aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr.api
diff options
context:
space:
mode:
authorChinmayaAgarwal <chinmaya.agarwal@hsc.com>2022-09-27 12:25:22 +0530
committerDamjan Marion <dmarion@0xa5.net>2022-10-03 16:12:20 +0000
commit9503eb59c128ead48b9aca22f11e55b0804ed0bd (patch)
treea65aee9ad1f58a1310398affd156b20f7dae9862 /src/vnet/srv6/sr.api
parent1fb62c0bcce06d335833a274f4c9c086aa907f97 (diff)
sr: new messages created to return packet statistics in sr localsid details
Type: improvement Signed-off-by: ChinmayaAgarwal <chinmaya.agarwal@hsc.com> Change-Id: I27d5981a77d4166a92db9ecf73d9b0eed962ec19
Diffstat (limited to 'src/vnet/srv6/sr.api')
-rw-r--r--src/vnet/srv6/sr.api31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/vnet/srv6/sr.api b/src/vnet/srv6/sr.api
index 6190a8c7ff5..08ae9fa2300 100644
--- a/src/vnet/srv6/sr.api
+++ b/src/vnet/srv6/sr.api
@@ -195,6 +195,37 @@ define sr_localsids_details
u32 xconnect_iface_or_vrf_table;
};
+
+/** \brief Dump the list of SR LocalSIDs along with packet statistics
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+*/
+define sr_localsids_with_packet_stats_dump
+{
+ u32 client_index;
+ u32 context;
+ option status="in_progress";
+};
+
+define sr_localsids_with_packet_stats_details
+{
+ u32 context;
+ vl_api_ip6_address_t addr;
+ bool end_psp;
+ vl_api_sr_behavior_t behavior;
+ u32 fib_table;
+ u32 vlan_index;
+ vl_api_address_t xconnect_nh_addr;
+ u32 xconnect_iface_or_vrf_table;
+ u64 good_traffic_bytes;
+ u64 good_traffic_pkt_count;
+ u64 bad_traffic_bytes;
+ u64 bad_traffic_pkt_count;
+ option status="in_progress";
+};
+
+
+
/** \brief Dump the list of SR policies
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request