diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-11-12 00:21:25 +0100 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-06-05 19:31:26 +0200 |
commit | 2fb717988832259273dee00f3bbcd9033f9c7ad0 (patch) | |
tree | 6c03c19b354010ec4cf596cfcaa271e495d9d26e /lib/plist.h | |
parent | lib: export access-lists shared functions (diff) | |
download | frr-2fb717988832259273dee00f3bbcd9033f9c7ad0.tar.xz frr-2fb717988832259273dee00f3bbcd9033f9c7ad0.zip |
lib: export prefix-lists functions
Export all functions that are going to be used by the northbound.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/plist.h')
-rw-r--r-- | lib/plist.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/plist.h b/lib/plist.h index ba2846d74..57eb763a6 100644 --- a/lib/plist.h +++ b/lib/plist.h @@ -79,6 +79,20 @@ extern void prefix_bgp_orf_remove_all(afi_t, char *); extern int prefix_bgp_show_prefix_list(struct vty *vty, afi_t afi, char *name, bool use_json); +extern struct prefix_list *prefix_list_get(afi_t afi, int orf, + const char *name); +extern void prefix_list_delete(struct prefix_list *plist); +extern int64_t prefix_new_seq_get(struct prefix_list *plist); + +extern struct prefix_list_entry *prefix_list_entry_new(void); +extern void prefix_list_entry_delete(struct prefix_list *plist, + struct prefix_list_entry *pentry, + int update_list); +extern struct prefix_list_entry * +prefix_list_entry_lookup(struct prefix_list *plist, struct prefix *prefix, + enum prefix_list_type type, int64_t seq, int le, + int ge); + #ifdef __cplusplus } #endif |