summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_top.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2018-02-12 05:17:11 +0100
committerChirag Shah <chirag@cumulusnetworks.com>2018-02-12 06:00:29 +0100
commitf89a449b5f109668bfcbc823db855244dfa7e170 (patch)
tree2adb950c929d39fe9fe332b93251b34229a1d8dd /ospf6d/ospf6_top.c
parentMerge pull request #1735 from LabNConsulting/working/master/pre-vpn-vrf-leak-... (diff)
downloadfrr-f89a449b5f109668bfcbc823db855244dfa7e170.tar.xz
frr-f89a449b5f109668bfcbc823db855244dfa7e170.zip
ospf6d: Fix distance command
Reset prevoiusly configured distance command options if user enters new (different) parameters. Ticket:CM-19635 Reviewed By: Testing Done: R1(config-ospf6)# distance ospf6 intra-area 55 external 55 R1#show running-config ospf6d router ospf6 distance ospf6 intra-area 55 external 55 R1(config-ospf6)# distance ospf6 inter-area 55 R1#show running-config ospf6d router ospf6 distance ospf6 inter-area 55 Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_top.c')
-rw-r--r--ospf6d/ospf6_top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c
index 749873bcf..450be5d44 100644
--- a/ospf6d/ospf6_top.c
+++ b/ospf6d/ospf6_top.c
@@ -521,6 +521,10 @@ DEFUN (ospf6_distance_ospf6,
VTY_DECLVAR_CONTEXT(ospf6, o);
int idx = 0;
+ o->distance_intra = 0;
+ o->distance_inter = 0;
+ o->distance_external = 0;
+
if (argv_find(argv, argc, "intra-area", &idx))
o->distance_intra = atoi(argv[idx + 1]->arg);
idx = 0;