Merge pull request #11207 from anlancs/fix/zebra-remove-check-l3vni

zebra: remove unncecessary check for l3vni
This commit is contained in:
Donald Sharp 2022-05-16 08:02:58 -04:00 committed by GitHub
commit 950e7e6660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5288,10 +5288,6 @@ int zebra_vxlan_process_vrf_vni_cmd(struct zebra_vrf *zvrf, vni_t vni,
/* add the L3-VNI to the global table */
zl3vni = zl3vni_add(vni, zvrf_id(zvrf));
if (!zl3vni) {
snprintf(err, err_str_sz, "Could not add L3-VNI");
return -1;
}
/* associate the vrf with vni */
zvrf->l3vni = vni;