1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2015-2016 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 option version = "1.0.1";
19 /** \brief IPv6 SR LocalSID add/del request
20 @param client_index - opaque cookie to identify the sender
21 @param context - sender context, to match reply w/ request
22 @param is_del Boolean of whether its a delete instruction
23 @param localsid_addr IPv6 address of the localsid
24 @param end_psp Boolean of whether decapsulation is allowed in this function
25 @param behavior Type of behavior (function) for this localsid
26 @param sw_if_index Only for L2/L3 xconnect. OIF. In VRF variant the
28 @param vlan_index Only for L2 xconnect. Outgoing VLAN tag.
29 @param fib_table FIB table in which we should install the localsid entry
30 @param nh_addr Next Hop IPv4/IPv6 address. Only for L2/L3 xconnect.
32 autoreply define sr_localsid_add_del
46 typeonly define sr_ip6_address
51 /** \brief IPv6 SR policy add
52 @param client_index - opaque cookie to identify the sender
53 @param context - sender context, to match reply w/ request
54 @param bsid is the bindingSID of the SR Policy
55 @param weight is the weight of the sid list. optional.
56 @param is_encap is the behavior of the SR policy. (0.SRH insert // 1.Encapsulation)
57 @param type is the type of the SR policy. (0.Default // 1.Spray)
58 @param fib_table is the VRF where to install the FIB entry for the BSID
59 @param segments is a vector of IPv6 address composing the segment list
61 autoreply define sr_policy_add
71 vl_api_sr_ip6_address_t segments[n_segments];
74 /** \brief IPv6 SR policy modification
75 @param client_index - opaque cookie to identify the sender
76 @param context - sender context, to match reply w/ request
77 @param bsid is the bindingSID of the SR Policy
78 @param sr_policy_index is the index of the SR policy
79 @param fib_table is the VRF where to install the FIB entry for the BSID
80 @param operation is the operation to perform (among the top ones)
81 @param segments is a vector of IPv6 address composing the segment list
82 @param sl_index is the index of the Segment List to modify/delete
83 @param weight is the weight of the sid list. optional.
84 @param is_encap Mode. Encapsulation or SRH insertion.
86 autoreply define sr_policy_mod
97 vl_api_sr_ip6_address_t segments[n_segments];
100 /** \brief IPv6 SR policy deletion
101 @param client_index - opaque cookie to identify the sender
102 @param context - sender context, to match reply w/ request
103 @param bsid is the bindingSID of the SR Policy
104 @param index is the index of the SR policy
106 autoreply define sr_policy_del
114 /** \brief IPv6 SR Set SRv6 encapsulation source
115 @param client_index - opaque cookie to identify the sender
116 @param context - sender context, to match reply w/ request
117 @param bsid is the bindingSID of the SR Policy
118 @param index is the index of the SR policy
120 autoreply define sr_set_encap_source
124 u8 encaps_source[16];
127 /** \brief IPv6 SR steering add/del
128 @param client_index - opaque cookie to identify the sender
129 @param context - sender context, to match reply w/ request
131 @param bsid is the bindingSID of the SR Policy (alt to sr_policy_index)
132 @param sr_policy is the index of the SR Policy (alt to bsid)
133 @param table_id is the VRF where to install the FIB entry for the BSID
134 @param prefix is the IPv4/v6 address for L3 traffic type
135 @param mask_width is the mask for L3 traffic type
136 @param sw_if_index is the incoming interface for L2 traffic
137 @param traffic_type describes the type of traffic
139 autoreply define sr_steering_add_del
153 /** \brief Dump the list of SR LocalSIDs
154 @param client_index - opaque cookie to identify the sender
155 @param context - sender context, to match reply w/ request
157 define sr_localsids_dump
163 define sr_localsids_details
170 u8 xconnect_next_hop[16];
171 u32 xconnect_iface_or_vrf_table;
175 * fd.io coding-style-patch-verification: OFF
177 * eval: (c-set-style "gnu")