summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-11-08 18:41:46 +0100
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-06-05 19:31:26 +0200
commitc2aab69336a684e973a73d166a062f3e5abec389 (patch)
treec2aa94380bd39914edcca1704a3ac91215c2f00b
parentlib: implement filter northbound (diff)
downloadfrr-c2aab69336a684e973a73d166a062f3e5abec389.tar.xz
frr-c2aab69336a684e973a73d166a062f3e5abec389.zip
*: add filter northbound support
Allow all daemons to work with filter northbound. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
-rw-r--r--bfdd/bfdd.c1
-rw-r--r--bgpd/bgp_main.c1
-rw-r--r--eigrpd/eigrp_main.c1
-rw-r--r--isisd/isis_main.c1
-rw-r--r--lib/filter.h2
-rw-r--r--lib/subdir.am1
-rw-r--r--ospf6d/ospf6_main.c1
-rw-r--r--ospfd/ospf_main.c1
-rw-r--r--ripd/rip_main.c1
-rw-r--r--ripngd/ripng_main.c1
-rw-r--r--staticd/static_main.c1
-rw-r--r--zebra/main.c1
12 files changed, 13 insertions, 0 deletions
diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c
index 39d51eb64..258f074e8 100644
--- a/bfdd/bfdd.c
+++ b/bfdd/bfdd.c
@@ -111,6 +111,7 @@ static struct quagga_signal_t bfd_signals[] = {
};
static const struct frr_yang_module_info *const bfdd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_bfdd_info,
&frr_vrf_info,
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 04be8d83e..f9ff99cab 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -359,6 +359,7 @@ static void bgp_vrf_terminate(void)
}
static const struct frr_yang_module_info *const bgpd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_route_map_info,
&frr_vrf_info,
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c
index cdf1c6acd..6c44ce361 100644
--- a/eigrpd/eigrp_main.c
+++ b/eigrpd/eigrp_main.c
@@ -139,6 +139,7 @@ struct quagga_signal_t eigrp_signals[] = {
static const struct frr_yang_module_info *const eigrpd_yang_modules[] = {
&frr_eigrpd_info,
+ &frr_filter_info,
&frr_interface_info,
&frr_route_map_info,
&frr_vrf_info,
diff --git a/isisd/isis_main.c b/isisd/isis_main.c
index 78654b2f1..7d45dd9c2 100644
--- a/isisd/isis_main.c
+++ b/isisd/isis_main.c
@@ -166,6 +166,7 @@ struct quagga_signal_t isisd_signals[] = {
static const struct frr_yang_module_info *const isisd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
#ifndef FABRICD
&frr_isisd_info,
diff --git a/lib/filter.h b/lib/filter.h
index 4f5341233..b45e47110 100644
--- a/lib/filter.h
+++ b/lib/filter.h
@@ -146,6 +146,8 @@ struct filter *filter_lookup_cisco(struct access_list *access,
struct filter *filter_lookup_zebra(struct access_list *access,
struct filter *mnew);
+extern const struct frr_yang_module_info frr_filter_info;
+
#ifdef __cplusplus
}
#endif
diff --git a/lib/subdir.am b/lib/subdir.am
index b2f3e7c5d..ecdd43f4a 100644
--- a/lib/subdir.am
+++ b/lib/subdir.am
@@ -22,6 +22,7 @@ lib_libfrr_la_SOURCES = \
lib/distribute.c \
lib/ferr.c \
lib/filter.c \
+ lib/filter_nb.c \
lib/frrcu.c \
lib/frrlua.c \
lib/frr_pthread.c \
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index 4dbe5ca32..8ae5fdcf0 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -166,6 +166,7 @@ struct quagga_signal_t ospf6_signals[] = {
};
static const struct frr_yang_module_info *const ospf6d_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_route_map_info,
&frr_vrf_info,
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 6a3ba9902..e534e72a6 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -126,6 +126,7 @@ struct quagga_signal_t ospf_signals[] = {
};
static const struct frr_yang_module_info *const ospfd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_route_map_info,
&frr_vrf_info,
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 9ec32a53e..7e381887f 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -114,6 +114,7 @@ static struct quagga_signal_t ripd_signals[] = {
};
static const struct frr_yang_module_info *const ripd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_ripd_info,
&frr_route_map_info,
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index fbac750db..010bac851 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -114,6 +114,7 @@ struct quagga_signal_t ripng_signals[] = {
};
static const struct frr_yang_module_info *const ripngd_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_ripngd_info,
&frr_route_map_info,
diff --git a/staticd/static_main.c b/staticd/static_main.c
index c77a99f28..08062f19d 100644
--- a/staticd/static_main.c
+++ b/staticd/static_main.c
@@ -104,6 +104,7 @@ struct quagga_signal_t static_signals[] = {
};
static const struct frr_yang_module_info *const staticd_yang_modules[] = {
+ &frr_filter_info,
&frr_vrf_info,
};
diff --git a/zebra/main.c b/zebra/main.c
index 05dd70ff7..71c7ebb62 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -253,6 +253,7 @@ struct quagga_signal_t zebra_signals[] = {
};
static const struct frr_yang_module_info *const zebra_yang_modules[] = {
+ &frr_filter_info,
&frr_interface_info,
&frr_route_map_info,
&frr_zebra_info,