]> git.puffer.fish Git - mirror/frr.git/commit
bgpd, yang: fix missing mandatory/default statements on some leafs 15428/head
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 19:50:41 +0000 (21:50 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 26 Feb 2024 07:44:44 +0000 (07:44 +0000)
commit7dd059f6f3de5c358667a028241a9c71f9358c81
treeade3acd7a4560e011025cc454e415c3bee24d48c
parent3496e9b20538a76584f8a453e764b3daaea44bf1
bgpd, yang: fix missing mandatory/default statements on some leafs

The code expects these leafs to always exist. If they are not set, the
daemon would crash. CLI always sets them, but we should properly mark
them as mandatory/default to prevent them from being missed when using
the API.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 83a3b0f10f994ee5adbbef0f6bd970b69eab4486)
bgpd/bgp_routemap_nb.c
bgpd/bgp_routemap_nb.h
bgpd/bgp_routemap_nb_config.c
yang/frr-bgp-route-map.yang