1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 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.
18 This file defines the vpp control-plane API messages
19 used to control the L3XC plugin
22 option version = "1.0.1";
24 import "vnet/fib/fib_types.api";
25 import "vnet/interface_types.api";
27 /** \brief Get the plugin version
28 @param client_index - opaque cookie to identify the sender
29 @param context - sender context, to match reply w/ request
31 define l3xc_plugin_get_version
37 /** \brief Reply to get the plugin version
38 @param context - returned sender context, to match reply w/ request
39 @param major - Incremented every time a known breaking behavior change is introduced
40 @param minor - Incremented with small changes, may be used to avoid buggy versions
42 define l3xc_plugin_get_version_reply
49 /** \brief A description of an L3XC policy
50 @param input interface of the x-connect
51 @param n_paths Number of paths
52 @param paths The set of forwarding paths.
56 vl_api_interface_index_t sw_if_index;
59 vl_api_fib_path_t paths[n_paths];
68 define l3xc_update_reply
76 autoreply define l3xc_del
80 vl_api_interface_index_t sw_if_index;
84 /** \brief Dump all L3XC policies
90 vl_api_interface_index_t sw_if_index;
93 /** \brief description returned in the dump