diff options
author | rgirada <rgirada@vmware.com> | 2020-05-18 07:02:34 +0200 |
---|---|---|
committer | rgirada <rgirada@vmware.com> | 2020-05-18 07:02:34 +0200 |
commit | 04e94d3929829c79e097f9b0d435da02cc6322f1 (patch) | |
tree | 4119f9e0b36113f3060e6cdce08a9aaffe133242 /ospfd/ospf_asbr.h | |
parent | ospfd: Route-tag is not set to external lsas when applying with rmap (diff) | |
download | frr-04e94d3929829c79e097f9b0d435da02cc6322f1.tar.xz frr-04e94d3929829c79e097f9b0d435da02cc6322f1.zip |
ospfd: Restoring the original tag in external lsas
Description:
When a routemap applied to set a tag, all the permitted routes are
refreshed with new tag, but when a different route map applied with
a different action still the same tag persits in the external route.
The actual tag received from zebra is expected to be set back to the
routes here. Corrected this behaviour by restoring a original tag
received from zebra.
Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'ospfd/ospf_asbr.h')
-rw-r--r-- | ospfd/ospf_asbr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_asbr.h b/ospfd/ospf_asbr.h index ac7bd68b5..1bcc32e3d 100644 --- a/ospfd/ospf_asbr.h +++ b/ospfd/ospf_asbr.h @@ -46,6 +46,9 @@ struct external_info { /* Additional Route tag. */ route_tag_t tag; + /* Actual tag received from zebra*/ + route_tag_t orig_tag; + struct route_map_set_values route_map_set; #define ROUTEMAP_METRIC(E) (E)->route_map_set.metric #define ROUTEMAP_METRIC_TYPE(E) (E)->route_map_set.metric_type |