summaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-05-23 12:38:22 -0400
committerDamjan Marion <dmarion@me.com>2019-05-24 08:23:15 +0000
commit34716fae918750e4fc7a7da4b06e0dfbdef2d1c5 (patch)
tree1dafbf3146545bf0b72663f665c758440083e843 /src/vat/api_format.c
parenta40776c76c28d241dff42c2155e7b91fc021858c (diff)
Remove historical ip4 icmp OAM code
Add a registration overwritten warning to ip4_icmp_register_type(...) Change-Id: I6c2aabdb979b54ec49e827225acc74559ac4caab Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r--src/vat/api_format.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 10e9d3e8593..b330a389ef8 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -5170,7 +5170,6 @@ _(proxy_arp_add_del_reply) \
_(proxy_arp_intfc_enable_disable_reply) \
_(sw_interface_set_unnumbered_reply) \
_(ip_neighbor_add_del_reply) \
-_(oam_add_del_reply) \
_(reset_fib_reply) \
_(dhcp_proxy_config_reply) \
_(dhcp_proxy_set_vss_reply) \
@@ -5379,7 +5378,6 @@ _(SW_INTERFACE_SET_UNNUMBERED_REPLY, \
_(IP_NEIGHBOR_ADD_DEL_REPLY, ip_neighbor_add_del_reply) \
_(CREATE_VLAN_SUBIF_REPLY, create_vlan_subif_reply) \
_(CREATE_SUBIF_REPLY, create_subif_reply) \
-_(OAM_ADD_DEL_REPLY, oam_add_del_reply) \
_(RESET_FIB_REPLY, reset_fib_reply) \
_(DHCP_PROXY_CONFIG_REPLY, dhcp_proxy_config_reply) \
_(DHCP_PROXY_SET_VSS_REPLY, dhcp_proxy_set_vss_reply) \
@@ -9538,59 +9536,6 @@ api_create_subif (vat_main_t * vam)
}
static int
-api_oam_add_del (vat_main_t * vam)
-{
- unformat_input_t *i = vam->input;
- vl_api_oam_add_del_t *mp;
- u32 vrf_id = 0;
- u8 is_add = 1;
- ip4_address_t src, dst;
- u8 src_set = 0;
- u8 dst_set = 0;
- int ret;
-
- while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
- {
- if (unformat (i, "vrf %d", &vrf_id))
- ;
- else if (unformat (i, "src %U", unformat_ip4_address, &src))
- src_set = 1;
- else if (unformat (i, "dst %U", unformat_ip4_address, &dst))
- dst_set = 1;
- else if (unformat (i, "del"))
- is_add = 0;
- else
- {
- clib_warning ("parse error '%U'", format_unformat_error, i);
- return -99;
- }
- }
-
- if (src_set == 0)
- {
- errmsg ("missing src addr");
- return -99;
- }
-
- if (dst_set == 0)
- {
- errmsg ("missing dst addr");
- return -99;
- }
-
- M (OAM_ADD_DEL, mp);
-
- mp->vrf_id = ntohl (vrf_id);
- mp->is_add = is_add;
- clib_memcpy (mp->src_address, &src, sizeof (mp->src_address));
- clib_memcpy (mp->dst_address, &dst, sizeof (mp->dst_address));
-
- S (mp);
- W (ret);
- return ret;
-}
-
-static int
api_reset_fib (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
@@ -22414,7 +22359,6 @@ _(create_subif, "<intfc> | sw_if_index <id> sub_id <n>\n" \
"[outer_vlan_id <n>][inner_vlan_id <n>]\n" \
"[no_tags][one_tag][two_tags][dot1ad][exact_match][default_sub]\n" \
"[outer_vlan_id_any][inner_vlan_id_any]") \
-_(oam_add_del, "src <ip4-address> dst <ip4-address> [vrf <n>] [del]") \
_(reset_fib, "vrf <n> [ipv6]") \
_(dhcp_proxy_config, \
"svr <v46-address> src <v46-address>\n" \