Julian Klaiber | b79d09b | 2022-11-08 08:44:06 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * Copyright(c) 2022 Cisco Systems, Inc. |
| 3 | */ |
| 4 | |
| 5 | option version = "1.0.0"; |
| 6 | |
| 7 | import "vnet/interface_types.api"; |
| 8 | |
| 9 | /** \brief SR PT iface dump request |
| 10 | @param client_index - opaque cookie to identifty the sender |
| 11 | @param context - sender context, to match reply w/ request |
| 12 | */ |
| 13 | define sr_pt_iface_dump |
| 14 | { |
| 15 | u32 client_index; |
| 16 | u32 context; |
| 17 | }; |
| 18 | |
| 19 | define sr_pt_iface_details |
| 20 | { |
| 21 | u32 context; |
| 22 | vl_api_interface_index_t sw_if_index; |
| 23 | u16 id; |
| 24 | u8 ingress_load; |
| 25 | u8 egress_load; |
| 26 | u8 tts_template; |
| 27 | }; |
| 28 | |
| 29 | /** \brief SR PT iface add request |
| 30 | @param client_index - opaque cookie to identifty the sender |
| 31 | @param context - sender context, to match reply w/ request |
| 32 | @param sw_if_index - index of the interface to add to SR PT |
| 33 | @param id - SR PT interface id |
| 34 | @param ingress_load - incoming interface load |
| 35 | @param egress_load - outgoing interface load |
| 36 | @param tts_template - truncated timestamp template to use |
| 37 | */ |
| 38 | autoreply define sr_pt_iface_add |
| 39 | { |
| 40 | u32 client_index; |
| 41 | u32 context; |
| 42 | vl_api_interface_index_t sw_if_index; |
| 43 | u16 id; |
| 44 | u8 ingress_load; |
| 45 | u8 egress_load; |
| 46 | u8 tts_template; |
| 47 | }; |
| 48 | |
| 49 | /** \brief SR PT iface del request |
| 50 | @param client_index - opaque cookie to identifty the sender |
| 51 | @param context - sender context, to match reply w/ request |
| 52 | @param sw_if_index - index of the interface to delete from SR PT |
| 53 | */ |
| 54 | autoreply define sr_pt_iface_del |
| 55 | { |
| 56 | u32 client_index; |
| 57 | u32 context; |
| 58 | vl_api_interface_index_t sw_if_index; |
| 59 | }; |