]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Note about functionality in rt.h
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Nov 2017 18:10:41 +0000 (13:10 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Nov 2017 18:13:07 +0000 (13:13 -0500)
When we are modifying the kernel there could
be multiple modules/hooks involved in this
process.  As such let the caller set
the appropriate flags for success/failure.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt.h

index f5f0fa195b380d83f7990f605923fe191000bf46..3ce15e964022377ebe00f4d4e0ab6bd50a047387 100644 (file)
 #include "zebra/zebra_ns.h"
 #include "zebra/zebra_mpls.h"
 
+/*
+ * Philosophy Note:
+ *
+ * Flags being SET/UNSET do not belong in the South Bound
+ * Interface.  This Setting belongs at the calling level
+ * because we can and will have multiple different interfaces
+ * and we will have potentially multiple different
+ * modules/filters to call.  As such Setting/Unsetting
+ * success failure should be handled by the caller.
+ */
+
 extern int kernel_route_rib(struct prefix *, struct prefix *,
                            struct route_entry *, struct route_entry *);