diff options
author | Neale Ranns <nranns@cisco.com> | 2020-09-18 12:58:40 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-09-21 15:34:56 +0000 |
commit | 3f9fdd98463bd926fc78a2b366875c929058e2db (patch) | |
tree | a38c26372ed7b1a433afbacf05e686044f1cf583 /src/vpp | |
parent | 4b1b13315a3c532d45fb41cc3ce34a48ad72a757 (diff) |
lldp: Move to plugin
Type: refactor
Change-Id: Ifd770ff4850e63474bf4682ad463021b03786b4b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vpp')
-rw-r--r-- | src/vpp/api/custom_dump.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 87729721fea..46beb685810 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -3410,47 +3410,6 @@ static void *vl_api_app_namespace_add_del_t_print FINISH; } -static void *vl_api_sw_interface_set_lldp_t_print - (vl_api_sw_interface_set_lldp_t * mp, void *handle) -{ - u8 *s; - u8 null_data[256]; - - clib_memset (null_data, 0, sizeof (null_data)); - - s = format (0, "SCRIPT: sw_interface_set_lldp "); - s = format (s, "sw_if_index %d ", (mp->sw_if_index)); - - if (memcmp (&mp->port_desc, null_data, sizeof (mp->port_desc))) - s = format (s, "port_desc %s ", mp->port_desc); - - if (memcmp (mp->mgmt_ip4, null_data, sizeof (mp->mgmt_ip4))) - s = format (s, "mgmt_ip4 %U ", format_ip4_address, mp->mgmt_ip4); - - if (memcmp (mp->mgmt_ip6, null_data, sizeof (mp->mgmt_ip6))) - s = format (s, "mgmt_ip6 %U ", format_ip6_address, mp->mgmt_ip6); - - if (memcmp (mp->mgmt_oid, null_data, sizeof (mp->mgmt_oid))) - s = format (s, "mgmt_oid %s ", mp->mgmt_oid); - - if (mp->enable == 0) - s = format (s, "disable "); - - FINISH; -} - -static void *vl_api_lldp_config_t_print - (vl_api_lldp_config_t * mp, void *handle) -{ - u8 *s; - - s = format (0, "SCRIPT: lldp_config "); - s = format (s, "system_name %s ", mp->system_name); - s = format (s, "tx_hold %d ", (mp->tx_hold)); - s = format (s, "tx_interval %d ", (mp->tx_interval)); - FINISH; -} - static void *vl_api_session_rule_add_del_t_print (vl_api_session_rule_add_del_t * mp, void *handle) { @@ -3717,8 +3676,6 @@ _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ _(P2P_ETHERNET_DEL, p2p_ethernet_del) \ _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \ _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ -_(LLDP_CONFIG, lldp_config) \ -_(SW_INTERFACE_SET_LLDP, sw_interface_set_lldp) \ _(SESSION_RULE_ADD_DEL, session_rule_add_del) \ _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \ _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \ |