Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 Cisco and/or its affiliates. |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | /** \file |
| 17 | |
| 18 | This file defines VPP feature control-plane API messages which are generally |
Jakub Grajciar | bf6c5c1 | 2019-10-01 11:37:30 +0200 | [diff] [blame] | 19 | called through a shared memory interface. |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 20 | */ |
| 21 | |
Jakub Grajciar | bf6c5c1 | 2019-10-01 11:37:30 +0200 | [diff] [blame] | 22 | option version = "1.0.2"; |
| 23 | |
| 24 | import "vnet/interface_types.api"; |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 25 | |
| 26 | /** \brief Feature path enable/disable request |
| 27 | @param client_index - opaque cookie to identify the sender |
| 28 | @param context - sender context, to match reply w/ request |
| 29 | @param sw_if_index - the interface |
| 30 | @param enable - 1 = on, 0 = off |
| 31 | */ |
| 32 | autoreply define feature_enable_disable { |
| 33 | u32 client_index; |
| 34 | u32 context; |
Jakub Grajciar | bf6c5c1 | 2019-10-01 11:37:30 +0200 | [diff] [blame] | 35 | vl_api_interface_index_t sw_if_index; |
| 36 | bool enable; |
| 37 | string arc_name[64]; |
| 38 | string feature_name[64]; |
Neale Ranns | b8d4481 | 2017-11-10 06:53:54 -0800 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | /* |
| 42 | * Local Variables: |
| 43 | * eval: (c-set-style "gnu") |
| 44 | * End: |
| 45 | */ |