Commit graph

13 commits

Author SHA1 Message Date
Donald Sharp 749dc0c966 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>
2025-03-27 08:51:05 -04:00
Y Bharath 9689556728 yang: Code inline with RFC 8407 rules
Code inline with RFC 8407 rules

Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-03-20 12:11:46 +05:30
Y Bharath 8e5e19baaf yang: Corrected range in yang file
Corrected range in yang file

Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2024-07-19 13:40:43 +05:30
Igor Ryzhov 5a759f8a69 eigrpd: convert distribute-list configuration to northbound
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-22 22:52:50 +02:00
David Lamparter 41db488c25 yang: add SPDX License IDs
YANG files get to keep their license boilerplate in addition to the SPDX
header, since they are likely to be copied around individually.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-09 14:09:11 +01:00
Igor Ryzhov 806defc8fe yang: use leafref instead of string
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2020-09-17 18:00:06 +03:00
Renato Westphal fe3b629a68 yang: adopt the BSD-2-Clause license for our YANG modules
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-05-04 21:10:43 -03:00
Renato Westphal e2a56663c0 yang: use the correct type for EIGRP neighbors
Fixes #6193.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-04-12 00:12:54 -03:00
Lou Berger 8678d6387c *: use the current project name (FRRouting)
Signed-off-by: Lou Berger <lberger@labn.net>
2020-03-25 17:38:56 -04:00
Quentin Young f22b925085 yang: create interface reference type
Instead of copy-pasting a 16 character string type for use as an
interface reference, create a new typedef that leafref's the name node
of an interface. This way the constraints change with the constraints on
an interface name itself, and it's self documenting.

Incidentally ripd and ripngd forgot the 16 character constraint in their
offset-list configs and IS-IS forgot it entirely, so this also fixes
minor bugs.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-09-10 20:29:10 +00:00
Rafael Zalamena 9008789aa4 yang: change EIGRP authentication enum name
In order to keep compatibility with the initial CLI, the enumeration
name for sha2 was changed. No CLI code workarounds required.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2019-08-03 08:31:09 -03:00
Rafael Zalamena 5b768c945e yang/eigrp: change active-time timer to seconds
Based on feedback.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2019-07-09 10:16:24 -03:00
Rafael Zalamena 46bd4645d5 yang: import EIGRP YANG model
Based on Cisco YANG model but simplified to look more like FRR's CLI
options and types.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2019-06-27 15:38:33 -03:00