mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
ospfd: fix argument parsing for distribute-list
Use the correct argument for the protocol lookup in ospf distribute-list commands. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
This commit is contained in:
parent
822d8f5519
commit
bda3c326a3
@ -6042,7 +6042,7 @@ DEFUN (ospf_distribute_list_out,
|
||||
int source;
|
||||
|
||||
/* Get distribute source. */
|
||||
source = proto_redistnum(AFI_IP, argv[0]);
|
||||
source = proto_redistnum(AFI_IP, argv[1]);
|
||||
if (source < 0 || source == ZEBRA_ROUTE_OSPF)
|
||||
return CMD_WARNING;
|
||||
|
||||
@ -6061,7 +6061,7 @@ DEFUN (no_ospf_distribute_list_out,
|
||||
struct ospf *ospf = vty->index;
|
||||
int source;
|
||||
|
||||
source = proto_redistnum(AFI_IP, argv[0]);
|
||||
source = proto_redistnum(AFI_IP, argv[1]);
|
||||
if (source < 0 || source == ZEBRA_ROUTE_OSPF)
|
||||
return CMD_WARNING;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user