summaryrefslogtreecommitdiffstats
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-31 02:58:47 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-03-31 17:57:37 +0200
commit52b530fc64355933d428e2b88591cbf926b85bc8 (patch)
tree3aa1c68bb61da7fbd462b86aa0cada9ade2054c6 /ldpd/interface.c
parentldpd: remove the interface vty node (diff)
downloadfrr-52b530fc64355933d428e2b88591cbf926b85bc8.tar.xz
frr-52b530fc64355933d428e2b88591cbf926b85bc8.zip
ldpd: fix configuration of non-existing VPLS interfaces and pseudowires
If we don't know the ifindex, flags, etc of an interface at the time it's configured, we should make sure that once this information is available the appropriate structures are updated. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/interface.c')
-rw-r--r--ldpd/interface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ldpd/interface.c b/ldpd/interface.c
index 17b3237b3..11bce12b0 100644
--- a/ldpd/interface.c
+++ b/ldpd/interface.c
@@ -49,17 +49,14 @@ iface_compare(struct iface *a, struct iface *b)
}
struct iface *
-if_new(struct kif *kif)
+if_new(const char *name)
{
struct iface *iface;
if ((iface = calloc(1, sizeof(*iface))) == NULL)
fatal("if_new: calloc");
- strlcpy(iface->name, kif->ifname, sizeof(iface->name));
- LIST_INIT(&iface->addr_list);
- if (kif->ifindex)
- if_update_info(iface, kif);
+ strlcpy(iface->name, name, sizeof(iface->name));
/* ipv4 */
iface->ipv4.af = AF_INET;