Bug 259403

Summary: net/frr7: libyang warns "Schema node X not found with context node Y" loading frr-zebra.yang
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Olivier Cochard <olivier>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (olivier)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
net/frr7: Backport 7573cb8 "yang: fix zebra module" none

Description John W. O'Brien 2021-10-24 16:04:01 UTC
Created attachment 228985 [details]
net/frr7: Backport 7573cb8 "yang: fix zebra module"

After upgrading net/libyang to 1.0.240, zebra began emitting the following warnings during service start.

Checking zebra.conf
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "condition" not found (./condition) with context node "/frr-route-map:lib/route-map/entry/match-condition".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "condition" not found (./condition = 'ipv4-prefix-length' or
./condition) with context node "/frr-route-map:lib/route-map/entry/match-condition".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "condition" not found (./condition) with context node "/frr-route-map:lib/route-map/entry/match-condition".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "condition" not found (./condition) with context node "/frr-route-map:lib/route-map/entry/match-condition".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "condition" not found (./condition) with context node "/frr-route-map:lib/route-map/entry/match-condition".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "action" not found (./action) with context node "/frr-route-map:lib/route-map/entry/set-action".
2021/10/24 11:41:55 ZEBRA: libyang: Schema node "action" not found (./action) with context node "/frr-route-map:lib/route-map/entry/set-action".
2021/10/24 11:41:55 ZEBRA: [EC 4043309111] Disabling MPLS support (no kernel support)
OK


This appears to be a consequence the bug reported upstream as #8521 [0]. A fix is available [1] in the 7-stable branch, but has not appeared in a 7.x release.

[0] https://github.com/FRRouting/frr/issues/8521
[1] https://github.com/FRRouting/frr/commit/7573cb86a259d3c9ef6eae9dd5d529f8080922cd
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-10-28 12:17:53 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4460e8dbd81053072a959b120f647db09690a333

commit 4460e8dbd81053072a959b120f647db09690a333
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2021-10-28 12:08:10 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2021-10-28 12:17:24 +0000

    net/frr7: Fix warnings since latest libyang upgrade

    PR:             259403
    Reported by:    John W. O'Brien <john@saltant.com>

 net/frr7/Makefile                                  |  2 +-
 .../files/patch-yang_frr-zebra.yang.patch (new)    | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+), 1 deletion(-)
Comment 2 Olivier Cochard freebsd_committer freebsd_triage 2021-10-28 12:18:27 UTC
Thanks for your report