diff options
author | Sebastien Merle <sebastien@netdef.org> | 2020-02-14 15:49:25 +0100 |
---|---|---|
committer | Sebastien Merle <sebastien@netdef.org> | 2020-08-12 13:28:48 +0200 |
commit | 065276ae1f437c54b33ebcc2201bf105bae39dda (patch) | |
tree | a834df39aa4aaf4644ad16e3cd0a3abb666506eb /staticd/static_zebra.c | |
parent | Merge pull request #6886 from opensourcerouting/grpc-doc (diff) | |
download | frr-065276ae1f437c54b33ebcc2201bf105bae39dda.tar.xz frr-065276ae1f437c54b33ebcc2201bf105bae39dda.zip |
staticd: add support for SR Policies
Configuration example:
ip route 9.9.9.9/32 6.6.6.6 color 123
The SR Policy to be chosen is uniquely identified by the policy
endpoint (6.6.6.6) and the SR-TE color (123). Traffic will be
augmented with an MPLS label stack according to the active
candidate path of that particular policy.
Co-authored-by: GalaxyGorilla <sascha@netdef.org>
Signed-off-by: Sebastien Merle <sebastien@netdef.org>
Diffstat (limited to 'staticd/static_zebra.c')
-rw-r--r-- | staticd/static_zebra.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index d8a4b7f0c..1bdbb69d0 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -431,6 +431,10 @@ extern void static_zebra_route_add(struct route_node *rn, api_nh->vrf_id = nh->nh_vrf_id; if (nh->onlink) SET_FLAG(api_nh->flags, ZAPI_NEXTHOP_FLAG_ONLINK); + if (nh->color != 0) { + SET_FLAG(api.message, ZAPI_MESSAGE_SRTE); + api_nh->srte_color = nh->color; + } nh->state = STATIC_SENT_TO_ZEBRA; |