mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 12:52:49 +00:00
eigrpd: minor fix in the redistribute command
Commands like "redistribute stati" and "redistribute osp" were being silently ignored. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
9b86009a38
commit
493c8ac787
@ -1005,9 +1005,11 @@ DEFUN (eigrp_redistribute_source_metric,
|
||||
|
||||
/* Get distribute source. */
|
||||
argv_find(argv, argc, "redistribute", &idx);
|
||||
source = proto_redistnum(AFI_IP, argv[idx + 1]->arg);
|
||||
if (source < 0)
|
||||
source = proto_redistnum(AFI_IP, argv[idx + 1]->text);
|
||||
if (source < 0) {
|
||||
vty_out(vty, "%% Invalid route type\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
/* Get metrics values */
|
||||
|
||||
@ -1034,9 +1036,11 @@ DEFUN (no_eigrp_redistribute_source_metric,
|
||||
|
||||
/* Get distribute source. */
|
||||
argv_find(argv, argc, "redistribute", &idx);
|
||||
source = proto_redistnum(AFI_IP, argv[idx + 1]->arg);
|
||||
if (source < 0)
|
||||
source = proto_redistnum(AFI_IP, argv[idx + 1]->text);
|
||||
if (source < 0) {
|
||||
vty_out(vty, "%% Invalid route type\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
/* Get metrics values */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user