diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-01 20:16:28 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-01 21:12:13 -0300 |
| commit | 1a99ca998dd05c41d4068ace4ca3ef8ac4ba309c (patch) | |
| tree | 5e9e78836c9c6db2f74ac8eb99e17cfeffb15829 /zebra/zebra_pw.h | |
| parent | dc4ccdd901047789f1a7075860d4874de1c12549 (diff) | |
zebra: add support for static pseudowires
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_pw.h')
| -rw-r--r-- | zebra/zebra_pw.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/zebra/zebra_pw.h b/zebra/zebra_pw.h index 9cb6ab416f..b588bac0a2 100644 --- a/zebra/zebra_pw.h +++ b/zebra/zebra_pw.h @@ -24,11 +24,12 @@ #include <netinet/in.h> #include "hook.h" +#include "qobj.h" #define PW_INSTALL_RETRY_INTERVAL 30 struct zebra_pw { - RB_ENTRY(zebra_pw) entry; + RB_ENTRY(zebra_pw) pw_entry, static_pw_entry; vrf_id_t vrf_id; char ifname[IF_NAMESIZE]; ifindex_t ifindex; @@ -45,10 +46,15 @@ struct zebra_pw { struct zserv *client; struct rnh *rnh; struct thread *install_retry_timer; + QOBJ_FIELDS }; +DECLARE_QOBJ_TYPE(zebra_pw) RB_HEAD(zebra_pw_head, zebra_pw); -RB_PROTOTYPE(zebra_pw_head, zebra_pw, entry, zebra_pw_compare); +RB_PROTOTYPE(zebra_pw_head, zebra_pw, pw_entry, zebra_pw_compare); + +RB_HEAD(zebra_static_pw_head, zebra_pw); +RB_PROTOTYPE(zebra_static_pw_head, zebra_pw, static_pw_entry, zebra_pw_compare); DECLARE_HOOK(pw_install, (struct zebra_pw * pw), (pw)) DECLARE_HOOK(pw_uninstall, (struct zebra_pw * pw), (pw)) @@ -64,5 +70,6 @@ void zebra_pw_install_failure(struct zebra_pw *); void zebra_pw_client_close(struct zserv *); void zebra_pw_init(struct zebra_vrf *); void zebra_pw_exit(struct zebra_vrf *); +void zebra_pw_vty_init(void); -#endif /* ZEBRA_PW_H_ */ +#endif /* ZEBRA_PW_H_ */ |
