summaryrefslogtreecommitdiff
path: root/staticd/static_zebra.h
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2020-04-24 05:38:43 -0700
committervdhingra <vdhingra@vmware.com>2020-07-16 08:33:00 -0700
commit88fa5104a04af60b7d1107f02ee84fb9c0a15abe (patch)
treec2bbeecd9a5c384b7a615032c5fe13a1ff495c36 /staticd/static_zebra.h
parent7441ea1afd4400ca74f97138e20e4ffb9f0b125e (diff)
staticd : Configuration northbound implementation
1. Modifies the data structs to make the distance, tag and table-id property of a route, i.e created a hireachical data struct to save route and nexthop information. 2. Backend northbound implementation Signed-off-by: VishalDhingra <vdhingra@vmware.com>
Diffstat (limited to 'staticd/static_zebra.h')
-rw-r--r--staticd/static_zebra.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/staticd/static_zebra.h b/staticd/static_zebra.h
index 962dc3908f..9f93f3ee63 100644
--- a/staticd/static_zebra.h
+++ b/staticd/static_zebra.h
@@ -22,13 +22,15 @@
extern struct thread_master *master;
extern void static_zebra_nht_register(struct route_node *rn,
- struct static_route *si, bool reg);
+ struct static_nexthop *nh, bool reg);
extern void static_zebra_route_add(struct route_node *rn,
- struct static_route *si_changed,
- vrf_id_t vrf_id, safi_t safi, bool install);
+ struct static_path *pn, safi_t safi,
+ bool install);
extern void static_zebra_init(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);
#endif