]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Prevent awful misconfiguration in vrf's
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 9 Mar 2020 13:50:18 +0000 (09:50 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Apr 2020 14:57:29 +0000 (10:57 -0400)
commit5e0311982af37f1fa98883a629c4c17324455d0b
tree7bd02617d94f8f6bb02310a53a8e54c6324d1b74
parent9d866c07c87a1452939feb7bd8bb91a3460cbccc
zebra: Prevent awful misconfiguration in vrf's

Currently the linux kernel allows you to specify the same
table id -> multiple vrf's.  While I am arguing with
the kernel people about proper behavior here let's
just remove this as a possiblity from happening and
mark it a zebra stopable misconfiguration.

(Effectively we are preventing a crash down the line
as that all over FRR we assume it's a unique
mapping not a many to one).

Why fail hard?  Because we hope to get the person
who misconfigured it to actually notice immediately
not hours or days down the line when shit hits the fan.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/if_netlink.c
zebra/zebra_errors.c
zebra/zebra_errors.h