summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospf6d/ospf6_interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 621cc36a0c..a5d9138743 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;