mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-28 01:12:36 +00:00
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>
This commit is contained in:
parent
420016643c
commit
f89a449b5f
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user