diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-25 20:57:03 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-27 14:54:57 -0300 | 
| commit | 5c3f00af13f1ac4f61dc7126741f7fd6e032151f (patch) | |
| tree | 4bff947c7d2e86914200ff4b5423737d84ffb516 /ldpd/lde.h | |
| parent | 52bd4c2321f49bec42ca466f5c395e78e6d7acc6 (diff) | |
ldpd: fix pseudowire merge algorithm
The previous algorithm wasn't failsafe for full configuration reloads
where several pseudowires can be inserted or removed at the same
time. This patch introduces a much simpler logic that solves the problem
in a better way.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/lde.h')
| -rw-r--r-- | ldpd/lde.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/ldpd/lde.h b/ldpd/lde.h index 9ab20e45eb..d1089b44f4 100644 --- a/ldpd/lde.h +++ b/ldpd/lde.h @@ -217,6 +217,8 @@ struct l2vpn_if	*l2vpn_if_find(struct l2vpn *, const char *);  void		 l2vpn_if_update(struct l2vpn_if *);  struct l2vpn_pw	*l2vpn_pw_new(struct l2vpn *, struct kif *);  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_init(struct l2vpn_pw *);  void		 l2vpn_pw_exit(struct l2vpn_pw *);  void		 l2vpn_pw_reset(struct l2vpn_pw *);  | 
