diff options
author | Emanuele Di Pascale <emanuele@voltanet.io> | 2021-03-03 10:56:51 +0100 |
---|---|---|
committer | Emanuele Di Pascale <emanuele@voltanet.io> | 2021-03-03 10:56:51 +0100 |
commit | 7bfc5ae813cced079421ee80f017b60ac89eed44 (patch) | |
tree | ac344b9e138e9f087972f8b7a1f025fc99304bbe /ospf6d/ospf6_interface.c | |
parent | Merge pull request #8170 from mjstapp/fix_sa_pim (diff) | |
download | frr-7bfc5ae813cced079421ee80f017b60ac89eed44.tar.xz frr-7bfc5ae813cced079421ee80f017b60ac89eed44.zip |
ospf6d: fix setting NOAUTOCOST flag
ospf6 keeps a flag to remember whether the cost for an interface
was manually added via config or computed automatically, but if
the configured value matches the auto-computed one we were not
setting this flag, meaning that the config would not show up in
the config.
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r-- | ospf6d/ospf6_interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 621cc36a0..a5d913874 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1622,12 +1622,11 @@ DEFUN (ipv6_ospf6_cost, return CMD_WARNING_CONFIG_FAILED; } + SET_FLAG(oi->flag, OSPF6_INTERFACE_NOAUTOCOST); if (oi->cost == lcost) return CMD_SUCCESS; oi->cost = lcost; - SET_FLAG(oi->flag, OSPF6_INTERFACE_NOAUTOCOST); - ospf6_interface_force_recalculate_cost(oi); return CMD_SUCCESS; |