summaryrefslogtreecommitdiff
path: root/staticd/static_zebra.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-09 22:55:29 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-09 22:58:45 +0300
commit4067e951407bbbdcdb8f4edb9c64763cd777476d (patch)
tree75c13be9ee6a60f7da70edd4aa5eae570188d0fc /staticd/static_zebra.h
parent3f8fcd2caa4fadeca9ecb8b432d28341d418cd2a (diff)
staticd: simplify the northbound code
Add a couple of back pointers to static route/path/nexthop structures to simplify the NB code and save ~200 lines. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd/static_zebra.h')
-rw-r--r--staticd/static_zebra.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/staticd/static_zebra.h b/staticd/static_zebra.h
index ca6308559e..e30fa3fd57 100644
--- a/staticd/static_zebra.h
+++ b/staticd/static_zebra.h
@@ -25,19 +25,15 @@ extern "C" {
extern struct thread_master *master;
-extern void static_zebra_nht_register(struct route_node *rn,
- struct static_nexthop *nh, bool reg);
+extern void static_zebra_nht_register(struct static_nexthop *nh, bool reg);
-extern void static_zebra_route_add(struct route_node *rn,
- struct static_path *pn, safi_t safi,
- bool install);
+extern void static_zebra_route_add(struct static_path *pn, bool install);
extern void static_zebra_init(void);
/* static_zebra_stop used by tests/lib/test_grpc.cpp */
extern void static_zebra_stop(void);
extern void static_zebra_vrf_register(struct vrf *vrf);
extern void static_zebra_vrf_unregister(struct vrf *vrf);
-extern int static_zebra_nh_update(struct route_node *rn,
- struct static_nexthop *nh);
+extern int static_zebra_nh_update(struct static_nexthop *nh);
#ifdef __cplusplus
}