VTY_DECLVAR_CONTEXT(bgp, bgp);
uint8_t value = 0;
- if (!strcmp (argv[1]->arg, "auto-vn"))
+ if (strmatch(argv[1]->text, "auto-vn"))
{
value = 0;
}
if (!h)
return CMD_WARNING;
- if (!strcmp (argv[1]->arg, "infinite"))
+ if (strmatch(argv[1]->text, "infinite"))
{
rspint = RFAPI_INFINITE_LIFETIME;
}
vnc_redistribute_prechange (bgp);
- if (!strcmp (argv[3]->arg, "infinite"))
+ if (strmatch(argv[3]->text, "infinite"))
{
bgp->rfapi_cfg->redist_lifetime = RFAPI_INFINITE_LIFETIME;
}
return CMD_WARNING;
}
- if (!strcmp (argv[3]->arg, "bgp-direct"))
+ if (strmatch(argv[3]->text, "bgp-direct"))
{
route_type = ZEBRA_ROUTE_BGP_DIRECT;
}
route_type = ZEBRA_ROUTE_BGP_DIRECT_EXT;
}
- if (!strcmp (argv[4]->arg, "ipv4"))
+ if (strmatch(argv[4]->text, "ipv4"))
{
afi = AFI_IP;
}
return CMD_WARNING;
}
- if (!strcmp (argv[2]->arg, "bgp-direct"))
+ if (strmatch(argv[2]->text, "bgp-direct"))
{
route_type = ZEBRA_ROUTE_BGP_DIRECT;
}
route_type = ZEBRA_ROUTE_BGP_DIRECT_EXT;
}
- if (!strcmp (argv[3]->arg, "ipv4"))
+ if (strmatch(argv[3]->text, "ipv4"))
{
afi = AFI_IP;
}
return CMD_WARNING;
}
- if (!strcmp (argv[3]->arg, "bgp-direct"))
+ if (strmatch(argv[3]->text, "bgp-direct"))
{
route_type = ZEBRA_ROUTE_BGP_DIRECT;
}
return CMD_WARNING;
}
- if (!strcmp (argv[2]->arg, "bgp-direct"))
+ if (strmatch(argv[2]->text, "bgp-direct"))
{
route_type = ZEBRA_ROUTE_BGP_DIRECT;
}
return CMD_WARNING;
}
- if (!strcmp (argv[3]->arg, "ipv4"))
+ if (strmatch(argv[3]->text, "ipv4"))
{
afi = AFI_IP;
}
return CMD_WARNING;
}
- if (!strcmp (argv[2]->arg, "ipv4"))
+ if (strmatch(argv[2]->text, "ipv4"))
{
afi = AFI_IP;
}
return CMD_WARNING;
}
- if (!strcmp (argv[3]->arg, "ipv4"))
+ if (strmatch(argv[3]->text, "ipv4"))
{
afi = AFI_IP;
}
if (argv[2]->arg[0] == 'b')
{
if (((argc > 5)
- && !strcmp (argv[5]->arg, rfg->plist_export_bgp_name[afi]))
+ && strmatch(argv[5]->text, rfg->plist_export_bgp_name[afi]))
|| (argc <= 5))
{
else
{
if (((argc > 5)
- && !strcmp (argv[5]->arg, rfg->plist_export_zebra_name[afi]))
+ && strmatch(argv[5]->text, rfg->plist_export_zebra_name[afi]))
|| (argc <= 5))
{
if (rfg->plist_export_zebra_name[afi])
return CMD_WARNING;
}
- if (!strcmp (argv[2]->arg, "ipv4"))
+ if (strmatch(argv[2]->text, "ipv4"))
{
afi = AFI_IP;
}
if (argv[2]->arg[0] == 'b')
{
if (((argc > 4)
- && !strcmp (argv[4]->arg, rfg->routemap_export_bgp_name))
+ && strmatch(argv[4]->text, rfg->routemap_export_bgp_name))
|| (argc <= 4))
{
else
{
if (((argc > 4)
- && !strcmp (argv[4]->arg, rfg->routemap_export_zebra_name))
+ && strmatch(argv[4]->text, rfg->routemap_export_zebra_name))
|| (argc <= 4))
{
if (rfg->routemap_export_zebra_name)
return CMD_WARNING;
}
- if (!strcmp (argv[4]->arg, "ipv4"))
+ if (strmatch(argv[4]->text, "ipv4"))
{
afi = AFI_IP;
}
{
if (((argc > 6)
&& hc->plist_export_bgp_name[afi]
- && !strcmp (argv[6]->arg, hc->plist_export_bgp_name[afi]))
+ && strmatch(argv[6]->text, hc->plist_export_bgp_name[afi]))
|| (argc <= 6))
{
{
if (((argc > 6)
&& hc->plist_export_zebra_name[afi]
- && !strcmp (argv[6]->arg, hc->plist_export_zebra_name[afi]))
+ && strmatch(argv[6]->text, hc->plist_export_zebra_name[afi]))
|| (argc <= 6))
{
return CMD_WARNING;
}
- if (!strcmp (argv[3]->arg, "ipv4"))
+ if (strmatch(argv[3]->text, "ipv4"))
{
afi = AFI_IP;
}
{
if (((argc > 5)
&& hc->routemap_export_bgp_name
- && !strcmp (argv[5]->arg, hc->routemap_export_bgp_name))
+ && strmatch(argv[5]->text, hc->routemap_export_bgp_name))
|| (argc <= 5))
{
{
if (((argc > 5)
&& hc->routemap_export_zebra_name
- && !strcmp (argv[5]->arg, hc->routemap_export_zebra_name))
+ && strmatch(argv[5]->text, hc->routemap_export_zebra_name))
|| (argc <= 5))
{
return CMD_WARNING;
}
- if (!strcmp (argv[1]->arg, "auto:vn"))
+ if (strmatch(argv[1]->text, "auto:vn"))
{
rfg->l2rd = 0;
}
return CMD_WARNING;
}
- if (!strcmp (argv[1]->arg, "infinite"))
+ if (strmatch(argv[1]->text, "infinite"))
{
rspint = RFAPI_INFINITE_LIFETIME;
}