diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-06 17:13:19 +0900 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:47 -0400 | 
| commit | c27b47d7916d0abd558fed46ba2c6e11d2573b3f (patch) | |
| tree | 2a7c3160b5051dfc40c27ce991a67261502b78df /sharpd/sharp_vty.c | |
| parent | d49e6c4afd864653e6d384d314872c0ae95f1963 (diff) | |
sharpd: install_routes_helper support ZAPI_ROUTE flags (step1)
current route addition mechanism on shaprd support only ipv4/v6 nexthop
routes simply. so It doesn't need to ensure flags of zapi_routes.
Then when we want to configure more complicated routing feature (like a
srv6), we will want to control flags of zapi_route. In this patch, it
will supports to configure flags of zapi_route when sharpd calls
ZEBRA_ROUTE_ADD.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'sharpd/sharp_vty.c')
| -rw-r--r-- | sharpd/sharp_vty.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 1ff0591d5e..de2d092c36 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -219,6 +219,7 @@ DEFPY (install_routes,  	struct prefix prefix;  	uint32_t rts;  	uint32_t nhgid = 0; +	uint32_t route_flags = 0;  	sg.r.total_routes = routes;  	sg.r.installed_routes = 0; @@ -332,7 +333,7 @@ DEFPY (install_routes,  	rts = routes;  	sharp_install_routes_helper(&prefix, sg.r.vrf_id, sg.r.inst, nhgid,  				    &sg.r.nhop_group, &sg.r.backup_nhop_group, -				    rts, sg.r.opaque); +				    rts, route_flags, sg.r.opaque);  	return CMD_SUCCESS;  }  | 
