diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-09-07 00:51:46 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2021-09-21 22:43:45 +0200 |
commit | 16727fd7eb1b99d7a3891a69b75abb8191b6887f (patch) | |
tree | 6e1b995f5c363cf9f02c6765f71986917ef234e1 /ospf6d | |
parent | ospf6d: fix metric type of NSSA Type-7 LSAs (diff) | |
download | frr-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.c | 2 |
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)); |