summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-10-04 18:10:58 -0300
committermergify-bot <noreply@mergify.io>2021-10-12 16:34:51 +0000
commite6305ad876bd8b650329763d8174bbdae33f086a (patch)
tree3573b001e8bec085ad45bb0943697183b7c83043 /ospfd/ospf_interface.c
parentec6f74958b7387a538f58e45c59b0abe69f9a885 (diff)
lib: prevent gRPC assert on missing YANG node
`yang_dnode_get` will `assert` if no YANG node/model exist, so lets test for its existence first before trying to access it. This `assert` is only acceptable for internal FRR usage otherwise we might miss typos or unmatching YANG models nodes/leaves. For gRPC usage we should let users attempt to use non existing models without `assert`ing. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org> (cherry picked from commit 0f538858c2bd22072539c8dbd4ad87601b0fc8ac)
Diffstat (limited to 'ospfd/ospf_interface.c')
0 files changed, 0 insertions, 0 deletions