diff options
author | vdhingra <vdhingra@vmware.com> | 2020-08-10 09:00:09 +0200 |
---|---|---|
committer | vdhingra <vdhingra@vmware.com> | 2020-09-01 06:12:21 +0200 |
commit | b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch) | |
tree | 100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_routes.h | |
parent | Merge pull request #7017 from xThaid/netlink_fix (diff) | |
download | frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.tar.xz frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.zip |
staticd : Added the warning log for route when VRF is not ready.
During the yangification of staticd, refactoring of code
around static_hold_route data struct has been done, In this
context warning log message when VRF is not ready had been
removed. This should not be removed, adding it back.
I have missed one MPLS validation too, adding it back.
Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'staticd/static_routes.h')
-rw-r--r-- | staticd/static_routes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/staticd/static_routes.h b/staticd/static_routes.h index e5c10d18a..bd2cd78fd 100644 --- a/staticd/static_routes.h +++ b/staticd/static_routes.h @@ -197,4 +197,17 @@ extern bool static_add_nexthop_validate(struct static_vrf *svrf, struct ipaddr *ipaddr); extern struct stable_info *static_get_stable_info(struct route_node *rn); extern void static_route_info_init(struct static_route_info *si); + +/* + * Max string return via API static_get_nh_str in size_t + */ + +#define NEXTHOP_STR (INET6_ADDRSTRLEN + INTERFACE_NAMSIZ + 25) +/* + * For the given nexthop, returns the string + * nexthop : returns the formatted string in nexthop + * size : max size of formatted string + */ +extern void static_get_nh_str(struct static_nexthop *nh, char *nexthop, + size_t size); #endif |