mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
Merge pull request #1742 from chiragshah6/mdev
ospf(6)d: Fix distance option command
This commit is contained in:
commit
89080977e3
@ -523,6 +523,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;
|
||||
|
@ -8558,6 +8558,10 @@ DEFUN (ospf_distance_ospf,
|
||||
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
|
||||
int idx = 0;
|
||||
|
||||
ospf->distance_intra = 0;
|
||||
ospf->distance_inter = 0;
|
||||
ospf->distance_external = 0;
|
||||
|
||||
if (argv_find(argv, argc, "intra-area", &idx))
|
||||
ospf->distance_intra = atoi(argv[idx + 1]->arg);
|
||||
idx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user