diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-31 02:58:47 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-31 17:57:37 +0200 |
commit | 52b530fc64355933d428e2b88591cbf926b85bc8 (patch) | |
tree | 3aa1c68bb61da7fbd462b86aa0cada9ade2054c6 /ldpd/lde.h | |
parent | ldpd: remove the interface vty node (diff) | |
download | frr-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/lde.h')
-rw-r--r-- | ldpd/lde.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ldpd/lde.h b/ldpd/lde.h index 8ee62b02d..57791cd1b 100644 --- a/ldpd/lde.h +++ b/ldpd/lde.h @@ -212,13 +212,15 @@ struct l2vpn *l2vpn_find(struct ldpd_conf *, const char *); void l2vpn_del(struct l2vpn *); void l2vpn_init(struct l2vpn *); void l2vpn_exit(struct l2vpn *); -struct l2vpn_if *l2vpn_if_new(struct l2vpn *, struct kif *); +struct l2vpn_if *l2vpn_if_new(struct l2vpn *, const char *); struct l2vpn_if *l2vpn_if_find(struct l2vpn *, const char *); +void l2vpn_if_update_info(struct l2vpn_if *, struct kif *); void l2vpn_if_update(struct l2vpn_if *); -struct l2vpn_pw *l2vpn_pw_new(struct l2vpn *, struct kif *); +struct l2vpn_pw *l2vpn_pw_new(struct l2vpn *, const char *); struct l2vpn_pw *l2vpn_pw_find(struct l2vpn *, const char *); struct l2vpn_pw *l2vpn_pw_find_active(struct l2vpn *, const char *); struct l2vpn_pw *l2vpn_pw_find_inactive(struct l2vpn *, const char *); +void l2vpn_pw_update_info(struct l2vpn_pw *, struct kif *); void l2vpn_pw_init(struct l2vpn_pw *); void l2vpn_pw_exit(struct l2vpn_pw *); void l2vpn_pw_reset(struct l2vpn_pw *); |