mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 22:30:43 +00:00
zebra: Fix static route helper function
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
6011c1b213
commit
3c2caef9fd
@ -312,25 +312,25 @@ zebra_vty_ip_route_tdv_helper (int argc, struct cmd_token *argv[],
|
|||||||
int idx_curr, char **tag,
|
int idx_curr, char **tag,
|
||||||
char **distance, char **vrf)
|
char **distance, char **vrf)
|
||||||
{
|
{
|
||||||
if (argc > idx_curr)
|
*distance = NULL;
|
||||||
{
|
while (idx_curr < argc)
|
||||||
if (strmatch (argv[idx_curr]->text, "tag"))
|
{
|
||||||
{
|
if (strmatch (argv[idx_curr]->text, "tag"))
|
||||||
*tag = argv[idx_curr]->arg;
|
{
|
||||||
idx_curr++;
|
*tag = argv[idx_curr+1]->arg;
|
||||||
}
|
idx_curr += 2;
|
||||||
|
}
|
||||||
if (strmatch (argv[idx_curr]->text, "vrf"))
|
else if (strmatch (argv[idx_curr]->text, "vrf"))
|
||||||
{
|
{
|
||||||
*distance = NULL;
|
*vrf = argv[idx_curr+1]->arg;
|
||||||
*vrf = argv[idx_curr]->arg;
|
idx_curr += 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*distance = argv[idx_curr]->arg;
|
*distance = argv[idx_curr]->arg;
|
||||||
*vrf = argv[++idx_curr]->arg;
|
idx_curr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user