diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-24 04:35:03 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:40 +0200 |
| commit | 185fd140cf74068b49d1539676a50205feb92096 (patch) | |
| tree | d0756a9f9b01aa996fccef012c28af03475dd644 /zebra/zebra_nb.c | |
| parent | 8763946ab271a714edb2c33b1f1e154bec7e7bab (diff) | |
zebra: fix build with --disable-rtadv
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/zebra_nb.c')
| -rw-r--r-- | zebra/zebra_nb.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/zebra/zebra_nb.c b/zebra/zebra_nb.c index 638507c52b..bb63a151e2 100644 --- a/zebra/zebra_nb.c +++ b/zebra/zebra_nb.c @@ -10,14 +10,22 @@ #include "libfrr.h" #include "zebra_nb.h" +#if HAVE_BFDD == 0 || defined(HAVE_RTADV) +const char *features[] = { #if HAVE_BFDD == 0 -const char *features[] = { "ptm-bfd", NULL }; + "ptm-bfd", +#endif +#if defined(HAVE_RTADV) + "ipv6-router-advertisements", +#endif + NULL +}; #endif /* clang-format off */ const struct frr_yang_module_info frr_zebra_info = { .name = "frr-zebra", -#if HAVE_BFDD == 0 +#if HAVE_BFDD == 0 || defined(HAVE_RTADV) .features = features, #endif .nodes = { @@ -561,6 +569,7 @@ const struct frr_yang_module_info frr_zebra_info = { .modify = lib_interface_zebra_evpn_mh_uplink_modify, } }, +#if defined(HAVE_RTADV) { .xpath = "/frr-interface:lib/interface/frr-zebra:zebra/ipv6-router-advertisements/send-advertisements", .cbs = { @@ -720,6 +729,7 @@ const struct frr_yang_module_info frr_zebra_info = { .destroy = lib_interface_zebra_ipv6_router_advertisements_rdnss_rdnss_address_lifetime_destroy, } }, +#endif /* defined(HAVE_RTADV) */ #if HAVE_BFDD == 0 { .xpath = "/frr-interface:lib/interface/frr-zebra:zebra/ptm-enable", |
