X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fapi.c;h=baf45d5c19aa26a9e48f5445f3aec5f9315e8017;hb=1c7d4858369881ac4cc287c4fa16eff2e9890c1c;hp=f1b6877f85b5b70a6a5d780799fdae99d7c5e5ec;hpb=b1352ed0ac39aaa7be7542275d1d43fa64ab28ac;p=vpp.git diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c index f1b6877f85b..baf45d5c19a 100644 --- a/src/vpp/api/api.c +++ b/src/vpp/api/api.c @@ -446,6 +446,12 @@ vl_api_bd_ip_mac_add_del_t_handler (vl_api_bd_ip_mac_add_del_t * mp) u32 bd_index; uword *p; + if (bd_id == 0) + { + rv = VNET_API_ERROR_BD_NOT_MODIFIABLE; + goto out; + } + p = hash_get (bdm->bd_index_by_bd_id, bd_id); if (p == 0) { @@ -971,6 +977,9 @@ ip6_reset_fib_t_handler (vl_api_reset_fib_t * mp) vec_reset_length (sw_if_indices_to_shut); + /* Set the flow hash for this fib to the default */ + vnet_set_ip6_flow_hash (fib->table_id, IP_FLOW_HASH_DEFAULT); + /* Shut down interfaces in this FIB / clean out intfc routes */ pool_foreach (si, im->sw_interfaces, ({