summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-09-07 00:51:46 +0200
committerRenato Westphal <renato@opensourcerouting.org>2021-09-21 22:43:45 +0200
commit16727fd7eb1b99d7a3891a69b75abb8191b6887f (patch)
tree6e1b995f5c363cf9f02c6765f71986917ef234e1 /ospf6d
parentospf6d: fix metric type of NSSA Type-7 LSAs (diff)
downloadfrr-16727fd7eb1b99d7a3891a69b75abb8191b6887f.tar.xz
frr-16727fd7eb1b99d7a3891a69b75abb8191b6887f.zip
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>
Diffstat (limited to 'ospf6d')
-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 5a7023126..b47f0ca16 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));