]> git.proxmox.com Git - mirror_frr.git/commit
ldpd: remove a few unnecessary functions
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 25 Mar 2017 23:52:42 +0000 (20:52 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 27 Mar 2017 17:54:57 +0000 (14:54 -0300)
commit52bd4c2321f49bec42ca466f5c395e78e6d7acc6
tree746c60dc4b39bd502d34e231b3e2c58250633d3a
parentdbce358222e5483140389795f790cfabd93808e1
ldpd: remove a few unnecessary functions

The original ldpd(8) daemon in OpenBSD doesn't allow the user to put
non-existing interfaces in the configuration file. For this reason,
the l2vpn_if_find() and l2vpn_pw_find() functions take an ifindex as
an argument.  In FRR's ldpd we can put non-existing interfaces in the
configuration, and they are activated as soon as they are available. For
this reason, we can't lookup interfaces by their ifindex in this port.
The l2vpn_if_find_name() and l2vpn_pw_find_name() functions were
introduced to address this issue. However, since the "find-by-ifindex"
functions are not being used anymore, we can just remove them and rename
the *_find_name() functions removing the "_name" suffix.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/l2vpn.c
ldpd/lde.h
ldpd/ldp_vty_conf.c
ldpd/ldpd.c
ldpd/ldpe.c