Bug #14275
closedDeleting a route map that is assigned to an active neighbor causes crash
100%
Description
Steps to reproduce:
2.7.0.a.20230405.0015 / FRR 7.5.1.
1) Establish BGP session to a neighbor and announce a prefix. IPv4/IPv6 doesn't matter.
2) Create a route map named "prepend" seq 100 with action
set as-path prepend 65530
3) Edit neighbor config to set the previously created route map "prepend" under "Outbound Route Map Filter"
4) We are now prepending 65530 to our announcement
5) Go back to Global Settings -> Route Maps pkg.php?xml=frr/frr_global_routemaps.xml and delete this active, in use route map.
6) Now try to edit the neighbor. The GUI will look OK insofar as it will show "Outbound Route Map Filter" "None" but if you try to save now, it will crash and service will stay down.
7) pkg_edit.php?xml=frr/frr_bgp.xml and pkg_edit.php?xml=frr/frr_global_raw.xml will also display this error text while pkg.php?xml=frr/frr_global_routemaps.xml and pkg.php?xml=frr/frr_bgp_neighbors.xml look normal
The only way to recover and get the service back up is to go back and redo step 2 with at least a blank route map named "prepend" with seq 100.
Expected Behavior: Going to pkg.php?xml=frr/frr_bgp_neighbors.xml and hitting save should apply and save what is shown on the GUI, i.e "Outbound Route Map Filer" is "None". It should produce a working config.
Actual Behavior: It expects the missing route map to be present and dies. There is a disconnect between what is shown in neighbor config GUI and what is happening in frr_generate_config_bgp
Files
Updated by Alhusein Zawi over 1 year ago
it shows an error if the route map was deleted..
the configuration shows the route map is not deleted while it was deleted but the service is still up.
it is better to restrict the deletion if the route map was assigned to neighbor's configuration .
Updated by Jim Pingle over 1 year ago
- Subject changed from FRR 7.5.1 on 2.7.0.a.20230405.0015 - deleting a route map that is assigned to an active neighbor causes crash to Deleting a route map that is assigned to an active neighbor causes crash
- Status changed from New to Feedback
- Assignee set to Jim Pingle
- % Done changed from 0 to 100
This should be fixed in FRR Package v1.3, which is building now and will be available shortly.
Updated by Danilo Zrenjanin over 1 year ago
- Status changed from Feedback to Resolved
Tested against FRR Package v1.3.
It's fixed.
I am marking this ticket resolved.