Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 1 | /* Hey Emacs use -*- mode: C -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 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: |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 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. |
| 15 | */ |
| 16 | |
| 17 | option version = "1.0.0"; |
| 18 | |
| 19 | import "vnet/ip/ip_types.api"; |
| 20 | import "vnet/interface_types.api"; |
| 21 | |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 22 | /** \brief TEIB Entry |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 23 | @param sw_if_index |
| 24 | */ |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 25 | typedef teib_entry |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 26 | { |
| 27 | vl_api_interface_index_t sw_if_index; |
| 28 | vl_api_address_t peer; |
| 29 | vl_api_address_t nh; |
| 30 | u32 nh_table_id; |
| 31 | }; |
| 32 | |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 33 | autoreply define teib_entry_add_del |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 34 | { |
| 35 | u32 client_index; |
| 36 | u32 context; |
| 37 | u8 is_add; |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 38 | vl_api_teib_entry_t entry; |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 41 | define teib_dump |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 42 | { |
| 43 | u32 client_index; |
| 44 | u32 context; |
| 45 | }; |
| 46 | |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 47 | define teib_details |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 48 | { |
| 49 | u32 context; |
Neale Ranns | 03ce462 | 2020-02-03 10:55:09 +0000 | [diff] [blame^] | 50 | vl_api_teib_entry_t entry; |
Neale Ranns | 5f8f617 | 2019-04-18 10:23:56 +0000 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | /* |
| 54 | * Local Variables: |
| 55 | * eval: (c-set-style "gnu") |
| 56 | * End: |
| 57 | */ |