diff options
author | vdhingra <vdhingra@vmware.com> | 2020-04-24 14:38:43 +0200 |
---|---|---|
committer | vdhingra <vdhingra@vmware.com> | 2020-07-16 17:33:00 +0200 |
commit | 88fa5104a04af60b7d1107f02ee84fb9c0a15abe (patch) | |
tree | c2bbeecd9a5c384b7a615032c5fe13a1ff495c36 /staticd/static_vrf.h | |
parent | lib : basic-routing backend configuration northbound code (diff) | |
download | frr-88fa5104a04af60b7d1107f02ee84fb9c0a15abe.tar.xz frr-88fa5104a04af60b7d1107f02ee84fb9c0a15abe.zip |
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_vrf.h')
-rw-r--r-- | staticd/static_vrf.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/staticd/static_vrf.h b/staticd/static_vrf.h index 6951e5671..12ad1b255 100644 --- a/staticd/static_vrf.h +++ b/staticd/static_vrf.h @@ -26,6 +26,14 @@ struct static_vrf { struct route_table *stable[AFI_MAX][SAFI_MAX]; }; +struct stable_info { + struct static_vrf *svrf; + afi_t afi; + safi_t safi; +}; + +#define GET_STABLE_VRF_ID(info) info->svrf->vrf->vrf_id + struct static_vrf *static_vrf_lookup_by_name(const char *vrf_name); struct static_vrf *static_vrf_lookup_by_id(vrf_id_t vrf_id); @@ -36,4 +44,6 @@ void static_vrf_init(void); struct route_table *static_vrf_static_table(afi_t afi, safi_t safi, struct static_vrf *svrf); extern void static_vrf_terminate(void); + +struct static_vrf *static_vty_get_unknown_vrf(const char *vrf_name); #endif |