]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: Fix route map "set tag" command
authorMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Wed, 26 May 2021 14:03:51 +0000 (16:03 +0200)
committerMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Wed, 26 May 2021 14:03:51 +0000 (16:03 +0200)
So far, "set tag" was 99% implemented in ospf6d, but registration of the
hook functions was missing, causing "set tag" actions in route maps to be
ignored in ospf6d.

This commit adds the missing hook registration.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
ospf6d/ospf6_asbr.c

index 245e5dcd3df5dd105e5eda813552e9eb8d134def..35f50898a686fb42053cd3d809ee092f2969fc21 100644 (file)
@@ -2009,6 +2009,9 @@ static void ospf6_routemap_init(void)
        route_map_set_metric_hook(generic_set_add);
        route_map_no_set_metric_hook(generic_set_delete);
 
+       route_map_set_tag_hook(generic_set_add);
+       route_map_no_set_tag_hook(generic_set_delete);
+
        route_map_match_tag_hook(generic_match_add);
        route_map_no_match_tag_hook(generic_match_delete);