FRR: Can no longer match a prefix-list in a route-map
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- [X] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [X] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [X] The title contains the plugin to which this issue belongs
Describe the bug No longer able to do a match ip address prefix-list myprefixlist under route-map. Receive this error in the log, and the running config does not show the match line:
[VAKV3-NMY7B][EC 100663337] error processing configuration change: error [internal inconsistency] event [apply] operation [modify] xpath [/frr-route-map:lib/route-map[name='Redistribution']/entry[sequence='10']/match-condition[condition='ipv4-prefix-list']/rmap-match-condition/list-name]
To Reproduce
Just create a ip prefix-list and try adding a match statement to a route-map
Expected behavior Running Config:
ip prefix-list myprefixlist seq 10 permit 100.64.0.0/10 le 32
route-map Redistribution permit 10
match ip address prefix-list myprefixlist
Screenshots Actual Running Config because of bug:
ip prefix-list myprefixlist seq 10 permit 100.64.0.0/10 le 32
route-map Redistribution permit 10
Missing match statement...
Relevant log files
[VAKV3-NMY7B][EC 100663337] error processing configuration change: error [internal inconsistency] event [apply] operation [modify] xpath [/frr-route-map:lib/route-map[name='Redistribution']/entry[sequence='10']/match-condition[condition='ipv4-prefix-list']/rmap-match-condition/list-name]
Additional context FRR issue also created: https://github.com/FRRouting/frr/issues/14626 Community post with others having issue: https://forum.opnsense.org/index.php?topic=36507.0
Environment OPNsense 23.7.6 OS Version: FreeBSD: 13.2-RELEASE-p3 FRR Version: 8.5.3
Hi, config file is correct but daemon interpretation is not? Did I get this right?
Thanks, Franco
@fichtner yes, i would say that is correct. using vtysh produces no error messages when entering the commands. However a show run shows the match statement is missing, and an error (see my original post) shows up in the log.
Thanks, marking this upstream for now and subscribed to other issue. May have to move this to ports repo where the fix would live under the current assumption.
Cheers, Franco
I have same problem after today's upgrade: route map results empty in frr config :(
Not quite sure how to downgrade this package
Check your version of libyang (dependency of FRR). There's a known issue with libyang 2.1.111. It should work fine if you downgrade it to 2.1.80.
Ok, it appears that the workaround is easier than expected:
# opnsense-revert -r 23.7.5 libyang2
A newer version of libyang seems to be out, not entirely sure if it was fixed though https://github.com/CESNET/libyang/releases/tag/v2.1.128
I installed the new version on a backup opnsense router for testing and it seems to be working
@2Rukus thanks for the help :)
I've also made a copy and it can be tested like so:
# opnsense-update -z libyang2
Cheers, Franco
Ok, it appears that the workaround is easier than expected:
# opnsense-revert -r 23.7.5 libyang2
I did run this, and also restarted OSPF service, but still nothing. Do I need a full router reboot or something else to apply?
@Trapulo Did you try "service frr restart" ?
Did you try "service frr restart" ?
Restarted frr from the GUI, still have the problem maybe I miss something? I've a workaround so I can wait for the fix if it will be available in a short time.
Maybe still wrong package version...
# pkg info | grep libyang2
2.1.111 running again the " opnsense-revert -r 23.7.5 libyang2" command, this is the version it selects. What's wrong?
2.1.111 IS the bad version
"-r 23.7.5" has 2.1.80 and "-z" has 2.1.128 so you need to pay attention to whether opnsense-revert actually reinstalls something or fails for whatever reason
Whatever this is it's not the mirror:
https://pkg.opnsense.org/FreeBSD:13:amd64/23.7/MINT/23.7.5/latest/All/libyang2-2.1.80.pkg
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.