summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-09-06 19:51:46 -0300
committerRenato Westphal <renato@opensourcerouting.org>2021-09-21 17:43:45 -0300
commit16727fd7eb1b99d7a3891a69b75abb8191b6887f (patch)
tree6e1b995f5c363cf9f02c6765f71986917ef234e1
parent242a9767f7bf44b1ec8944ca880962c62d5264b2 (diff)
ospf6d: fix issue when displaying the redistribute command
When set to its default value, the metric type associated to a "redistribute" statement shouldn't be displayed as part of the running configuration. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
-rw-r--r--ospf6d/ospf6_asbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 5a7023126d..b47f0ca169 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -1787,7 +1787,7 @@ int ospf6_redistribute_config_write(struct vty *vty, struct ospf6 *ospf6)
vty_out(vty, " redistribute %s", ZROUTE_NAME(type));
if (red->dmetric.value >= 0)
vty_out(vty, " metric %d", red->dmetric.value);
- if (red->dmetric.type != DEFAULT_METRIC_TYPE)
+ if (red->dmetric.type == 1)
vty_out(vty, " metric-type 1");
if (ROUTEMAP_NAME(red))
vty_out(vty, " route-map %s", ROUTEMAP_NAME(red));