mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
Merge pull request #3064 from NaveenThanikachalam/3049
lib: Trigger callbacks to re-evaluate route-map clauses when "call" CLI is executed.
This commit is contained in:
commit
b3630e8436
@ -1759,8 +1759,19 @@ void route_map_upd8_dependency(route_map_event_t type, const char *arg,
|
|||||||
{
|
{
|
||||||
struct hash *upd8_hash = NULL;
|
struct hash *upd8_hash = NULL;
|
||||||
|
|
||||||
if ((upd8_hash = route_map_get_dep_hash(type)))
|
if ((upd8_hash = route_map_get_dep_hash(type))) {
|
||||||
route_map_dep_update(upd8_hash, arg, rmap_name, type);
|
route_map_dep_update(upd8_hash, arg, rmap_name, type);
|
||||||
|
|
||||||
|
if (type == RMAP_EVENT_CALL_ADDED) {
|
||||||
|
/* Execute hook. */
|
||||||
|
if (route_map_master.add_hook)
|
||||||
|
(*route_map_master.add_hook)(rmap_name);
|
||||||
|
} else if (type == RMAP_EVENT_CALL_DELETED) {
|
||||||
|
/* Execute hook. */
|
||||||
|
if (route_map_master.delete_hook)
|
||||||
|
(*route_map_master.delete_hook)(rmap_name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void route_map_notify_dependencies(const char *affected_name,
|
void route_map_notify_dependencies(const char *affected_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user