Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 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 | |
Jakub Grajciar | 1c684f9 | 2020-01-30 14:01:17 +0100 | [diff] [blame] | 16 | option version = "2.0.0"; |
| 17 | |
| 18 | import "vnet/interface_types.api"; |
| 19 | import "vnet/ip/ip_types.api"; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 20 | |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 21 | /** \brief configure global parameter for LLDP |
| 22 | @param client_index - opaque cookie to identify the sender |
| 23 | @param context - sender context, to match reply w/ request |
| 24 | @param system_name - VPP system name |
| 25 | @param tx_hold - multiplier for tx_interval when setting time-to-live (TTL) |
| 26 | value in the LLDP packets |
| 27 | @param tx_interval - time interval, in seconds, between each LLDP frames |
| 28 | */ |
| 29 | autoreply define lldp_config |
| 30 | { |
| 31 | u32 client_index; |
| 32 | u32 context; |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 33 | u32 tx_hold; |
| 34 | u32 tx_interval; |
Jakub Grajciar | 1c684f9 | 2020-01-30 14:01:17 +0100 | [diff] [blame] | 35 | string system_name[]; |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | /** \brief Interface set LLDP request |
| 39 | @param client_index - opaque cookie to identify the sender |
| 40 | @param context - sender context, to match reply w/ request |
| 41 | @param sw_if_index - interface for which to enable/disable LLDP |
Steve Shin | 9a6fcef | 2017-10-11 13:55:16 -0700 | [diff] [blame] | 42 | @param mgmt_ip4_addr - management ip4 address of the interface |
| 43 | @param mgmt_ip6_addr - management ip6 address of the interface |
| 44 | @param mgmt_oid - OID(Object Identifier) of the interface |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 45 | @param enable - if non-zero enable, else disable |
Jakub Grajciar | 1c684f9 | 2020-01-30 14:01:17 +0100 | [diff] [blame] | 46 | @param port_desc - local port description |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 47 | */ |
| 48 | autoreply define sw_interface_set_lldp |
| 49 | { |
| 50 | u32 client_index; |
| 51 | u32 context; |
Jakub Grajciar | 1c684f9 | 2020-01-30 14:01:17 +0100 | [diff] [blame] | 52 | vl_api_interface_index_t sw_if_index; |
| 53 | vl_api_ip4_address_t mgmt_ip4; |
| 54 | vl_api_ip6_address_t mgmt_ip6; |
Steve Shin | 9a6fcef | 2017-10-11 13:55:16 -0700 | [diff] [blame] | 55 | u8 mgmt_oid[128]; |
Jakub Grajciar | 1c684f9 | 2020-01-30 14:01:17 +0100 | [diff] [blame] | 56 | bool enable [default=true]; |
| 57 | string port_desc[]; |
Steve Shin | 99a0e60 | 2017-07-01 04:16:20 +0000 | [diff] [blame] | 58 | }; |