]> git.proxmox.com Git - mirror_frr.git/commit - babeld/babeld.c
*: remove VTY_GET_*
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 27 Jun 2017 18:47:03 +0000 (18:47 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 27 Jun 2017 19:04:41 +0000 (19:04 +0000)
commitfacfee22f55631992113af5606cf8ade069684b3
treeb7ca477d3a90724929f2af749b09bdd6306ae8a6
parent5ce1d8b118ae85765d135aaf06bf04a554607d12
*: remove VTY_GET_*

CLI validates input tokens, so there's no need to do it in handler
functions anymore.

spatch follows
----------------

@getull@
expression v;
expression str;
@@
<...
- VTY_GET_ULL(..., v, str)
+ v = strtoull (str, NULL, 10)
...>

@getul@
expression v;
expression str;
@@
<...
- VTY_GET_ULONG(..., v, str)
+ v = strtoul (str, NULL, 10)
...>

@getintrange@
expression name;
expression v;
expression str;
@@
<...
- VTY_GET_INTEGER_RANGE(name, v, str, ...)
+ v = strtoul (str, NULL, 10)
...>

@getint@
expression v;
expression str;
@@
<...
- VTY_GET_INTEGER(..., v, str)
+ v = strtoul (str, NULL, 10)
...>

@getv4@
expression v;
expression str;
@@
<...
- VTY_GET_IPV4_ADDRESS(..., v, str)
+ inet_aton (str, &v)
...>

@getv4pfx@
expression v;
expression str;
@@
<...
- VTY_GET_IPV4_PREFIX(..., v, str)
+ str2prefix_ipv4 (str, &v)
...>

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
27 files changed:
babeld/babel_interface.c
babeld/babeld.c
bgpd/bgp_route.c
bgpd/bgp_vty.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi.c
bgpd/rfapi/rfapi_vty.c
bgpd/rfp-example/librfp/rfp_example.c
eigrpd/eigrp_vty.c
isisd/isis_vty.c
lib/bfd.c
lib/command.c
lib/keychain.c
lib/ns.c
lib/routemap.c
lib/vty.h
nhrpd/nhrp_vty.c
ospf6d/ospf6_area.c
ospf6d/ospf6_spf.c
ospf6d/ospf6_top.c
ospfd/ospf_dump.c
ospfd/ospf_vty.c
ripngd/ripngd.c
zebra/interface.c
zebra/rtadv.c
zebra/zebra_routemap.c
zebra/zebra_vty.c