Fixes a small bookkeeping oversight where the VXLAN instance
numbers were being freed erroneously by their device_instance
number rather than the correct user_instance number.
Change-Id: I08f6b2089c7a14cc8a8cb91f04f850f60ecec43b
Signed-off-by: Jon Loeliger <jdl@netgate.com>
}
vnet_delete_hw_interface (vnm, t->hw_if_index);
- hash_unset (vxm->instance_used, instance);
+ hash_unset (vxm->instance_used, t->user_instance);
fib_node_deinit(&t->node);
vec_free (t->rewrite);