]> git.puffer.fish Git - matthieu/frr.git/commit
yang: Limit eigrp to just 1 instance per vrf
authorDonald Sharp <sharpd@nvidia.com>
Thu, 27 Mar 2025 12:51:05 +0000 (08:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 27 Mar 2025 12:51:05 +0000 (08:51 -0400)
commit749dc0c966918e559ddf3f64809b1824fbafcac7
tree9acb0cd03292cebb47e3e1ea9c03eec0671ee7b7
parentb8dfbbcca96c815aa8d0688f455a291d203812a2
yang: Limit eigrp to just 1 instance per vrf

Currently EIGRP has built in yang code that expects only
1 ASN used per vrf.  Let's just limit the operator from
putting themselves in a bad position by allowing something like
this:

router eigrp 33
....
!
router eigrp 99
...
!

no router eigrp 99 would crash because of assumptions
made in the yang processing.

Let's just hard code that assumption into the EIGRP yang
at the moment such that it will not allow you to enter
a `router eigrp 99` instance at all.

This is purely a software limitation to prevent the code
from violating it's current assumptions.  I do not see
much need to support this at this point in time so I
fixed the problem this way instead of having to possibly
touch a bunch of code.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
yang/frr-eigrpd.yang