summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2013-01-24 14:04:47 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2013-09-19 17:51:16 +0200
commitc7df92de2dc91d0a934cf892e543728cb1a10849 (patch)
tree81bbf6ded1b86ccd95cc76d17f9ff3cec55ad9fb
parentd7f5dad6d1ab3078fcabc79e15a88873940c074d (diff)
zebra: warn if advertising connected with _REAL unset
The implementation in zebra and the zclient protocol allow to communicate addresses to clients which are not yet in the kernel. This is usually not done and most clients seem to expect an address to be configured in the kernel when they receive it. Therefore, it seems reasonable to issue a warning when advertising an address to the clients that is not yet in the kernel. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--zebra/redistribute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c
index 47658248..078c2ad0 100644
--- a/zebra/redistribute.c
+++ b/zebra/redistribute.c
@@ -358,6 +358,9 @@ zebra_interface_address_add_update (struct interface *ifp,
p->prefixlen, ifc->ifp->name);
}
+ if (!CHECK_FLAG(ifc->conf, ZEBRA_IFC_REAL))
+ zlog_warn("WARNING: advertising address to clients that is not yet usable.");
+
router_id_add_address(ifc);
for (ALL_LIST_ELEMENTS (zebrad.client_list, node, nnode, client))