summaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr_pt.api
blob: e86359b421f54b51d2fdf5a41b1d57aeebfb2246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* SPDX-License-Identifier: Apache-2.0
 * Copyright(c) 2022 Cisco Systems, Inc.
 */

option version = "1.0.0";

import "vnet/interface_types.api";

/** \brief SR PT iface dump request
    @param client_index - opaque cookie to identifty the sender
    @param context - sender context, to match reply w/ request
*/
define sr_pt_iface_dump
{
  u32 client_index;
  u32 context;
};

define sr_pt_iface_details
{
  u32 context;
  vl_api_interface_index_t sw_if_index;
  u16 id;
  u8 ingress_load;
  u8 egress_load;
  u8 tts_template;
};

/** \brief SR PT iface add request
    @param client_index - opaque cookie to identifty the sender
    @param context - sender context, to match reply w/ request
    @param sw_if_index - index of the interface to add to SR PT
    @param id - SR PT interface id
    @param ingress_load - incoming interface load
    @param egress_load - outgoing interface load
    @param tts_template - truncated timestamp template to use
*/
autoreply define sr_pt_iface_add
{
  u32 client_index;
  u32 context;
  vl_api_interface_index_t sw_if_index;
  u16 id;
  u8 ingress_load;
  u8 egress_load;
  u8 tts_template;
};

/** \brief SR PT iface del request
    @param client_index - opaque cookie to identifty the sender
    @param context - sender context, to match reply w/ request
    @param sw_if_index - index of the interface to delete from SR PT
*/
autoreply define sr_pt_iface_del
{
  u32 client_index;
  u32 context;
  vl_api_interface_index_t sw_if_index;
};