summaryrefslogtreecommitdiffstats
path: root/lib/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filter.c')
-rw-r--r--lib/filter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/filter.c b/lib/filter.c
index a4729414..9c3d3bd6 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -28,6 +28,7 @@
#include "sockunion.h"
#include "buffer.h"
#include "log.h"
+#include "routemap.h"
struct filter_cisco
{
@@ -460,6 +461,7 @@ access_list_filter_add (struct access_list *access, struct filter *filter)
/* Run hook function. */
if (access->master->add_hook)
(*access->master->add_hook) (access);
+ route_map_notify_dependencies(access->name, RMAP_EVENT_FILTER_ADDED);
}
/* If access_list has no filter then return 1. */
@@ -493,6 +495,8 @@ access_list_filter_delete (struct access_list *access, struct filter *filter)
filter_free (filter);
+ route_map_notify_dependencies(access->name, RMAP_EVENT_FILTER_DELETED);
+
/* Run hook function. */
if (master->delete_hook)
(*master->delete_hook) (access);
@@ -1337,6 +1341,7 @@ DEFUN (no_access_list_all,
master = access->master;
+ route_map_notify_dependencies(access->name, RMAP_EVENT_FILTER_DELETED);
/* Run hook function. */
if (master->delete_hook)
(*master->delete_hook) (access);
@@ -1508,6 +1513,7 @@ DEFUN (no_ipv6_access_list_all,
master = access->master;
+ route_map_notify_dependencies(access->name, RMAP_EVENT_FILTER_DELETED);
/* Run hook function. */
if (master->delete_hook)
(*master->delete_hook) (access);