summaryrefslogtreecommitdiffstats
path: root/yang/frr-bfdd.yang (follow)
Commit message (Collapse)AuthorAgeFilesLines
* yang: add SPDX License IDsDavid Lamparter2023-02-091-0/+1
| | | | | | | 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>
* yang: static route BFD monitoringRafael Zalamena2023-01-131-0/+30
| | | | | | | Define a generic BFD monitoring group template and use it to add support for static route monitoring. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd,yang: optimize nb with YANGanlan_cs2022-01-251-4/+12
| | | | | | | | | A few optimizations for bfd NB: - Remove unuseful checks for parameters with the same values - Replace checking values of bfd parameters with YANG's "range" - Append "required-echo-receive-interval" with 0 for it can be disabled Signed-off-by: anlan_cs <vic.lan@pica8.com>
* yang: fix "minimum-ttl" missing default valueanlan_cs2022-01-241-3/+4
| | | | | | | | | | Just like other parameters of bfd, "minimum-ttl" should also have a default value. Parameters with default value will not be displayed in running configuration. Additionly adjust the other "range" with double quotation marks. Signed-off-by: anlan_cs <vic.lan@pica8.com>
* bfdd: forbid setting interface for multihop sessionsIgor Ryzhov2021-06-011-6/+1
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* bfdd: separate echo rx/tx timersIgor Ryzhov2021-03-161-1/+8
| | | | | | | | | | Currently there is a single interval for both RX and TX echo functions. This commit introduces separate RX and TX timers for echo packets. The main advantage is to be able to set the receive interval to zero when we don't want to receive echo packets from the remote system. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* bfdd: make sessions administratively up by defaultIgor Ryzhov2021-03-141-1/+1
| | | | | | | | | | | | | | | | Current behavior is inconsistent. When the session is created by another daemon, it is up by default. When we later configure peer in bfdd, the session is still up, but the NB layer thinks that it is down. More than that, even when the session is created in bfdd using peer command, it is created in DOWN state, not ADM_DOWN. And it actually starts sending and receiving packets. The sessions is marked with SHUTDOWN flag only when we try to reconfigure some parameter. This behavior is also very unexpected. Fixes #7780. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* yang: use leafref instead of stringIgor Ryzhov2020-09-171-8/+7
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* yang: add new BFD configuration leavesRafael Zalamena2020-08-111-0/+21
| | | | | | | | | The two new configurations knobs are: * Passsive mode * Minimum TTL Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* yang: support BFD session profilesRafael Zalamena2020-05-201-0/+38
| | | | | | | | | | Allow sessions to use BFD profile configurations instead of having to clone the configuration per peer. If using a profile and setting a peer configuration, the peer configuration will take precedence over the profile. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* yang: fix BFD multi hop RFC numberRafael Zalamena2020-05-151-1/+1
| | | | | | The RFC for multi hop is 5883 and not 5882. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* yang: adopt the BSD-2-Clause license for our YANG modulesRenato Westphal2020-05-051-1/+26
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* *: use the current project name (FRRouting)Lou Berger2020-03-251-1/+1
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* *: Fix spelling errors pointed out by debian packagingDonald Sharp2019-08-191-6/+6
| | | | | | | | | | | | | | | | | | | | | | | Debian packaging when run finds a bunch of spelling errors: I: frr: spelling-error-in-binary usr/bin/vtysh occurences occurrences I: frr: spelling-error-in-binary usr/lib/frr/bfdd Amount of times Number of times I: frr: spelling-error-in-binary usr/lib/frr/bgpd occurences occurrences I: frr: spelling-error-in-binary usr/lib/frr/bgpd recieved received I: frr: spelling-error-in-binary usr/lib/frr/isisd betweeen between I: frr: spelling-error-in-binary usr/lib/frr/ospf6d Infomation Information I: frr: spelling-error-in-binary usr/lib/frr/ospfd missmatch mismatch I: frr: spelling-error-in-binary usr/lib/frr/pimd bootsrap bootstrap I: frr: spelling-error-in-binary usr/lib/frr/pimd Unknwon Unknown I: frr: spelling-error-in-binary usr/lib/frr/zebra Requsted Requested I: frr: spelling-error-in-binary usr/lib/frr/zebra uknown unknown I: frr: spelling-error-in-binary usr/lib/x86_64-linux-gnu/frr/libfrr.so.0.0.0 overriden overridden This commit fixes all of them except the bgp `recieved` issue due to it being part of json output. That one will need to go through a deprecation cycle. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* yang: change single hop `leaf` orderRafael Zalamena2019-07-091-5/+5
| | | | | | | | | | Move `source-address` to after the list keys, otherwise the CLI would get into an invalid state and be unable to set any other configuration inside that node. Spotted by Philippe Guibert. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: use microseconds timers in YANGRafael Zalamena2019-06-221-9/+9
| | | | | | | | | | Lets allow specification to accept microseconds, but limit the timers configuration in FRR to milliseconds (minimum is 10 ms and maximum is 60 seconds). This matches the RFC 5880 and the IETF BFD YANG draft model. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* yang: import BFD yang modelRafael Zalamena2019-06-221-0/+387
New yang model to support the BFD session configuration. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>