diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-28 10:18:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-28 10:18:33 -0400 |
| commit | ed8ba2e92048e4164fa91e70aa3ed5e31f85bba1 (patch) | |
| tree | 20b798cba8d4d5a629cf8a8a7ce776c4b8324de3 /isisd/isis_adjacency.c | |
| parent | 94248997abd70f8e506e1909930828f02c9160ae (diff) | |
| parent | 2b67862ccac99737913a674b3e9138a49a44421d (diff) | |
Merge pull request #423 from opensourcerouting/feature/isis-mt
IS-IS multi topology
Diffstat (limited to 'isisd/isis_adjacency.c')
| -rw-r--r-- | isisd/isis_adjacency.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index f550924874..fea99ec907 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -47,6 +47,7 @@ #include "isisd/isis_lsp.h" #include "isisd/isis_spf.h" #include "isisd/isis_events.h" +#include "isisd/isis_mt.h" extern struct isis *isis; @@ -148,6 +149,8 @@ isis_delete_adj (void *arg) if (adj->ipv6_addrs) list_delete (adj->ipv6_addrs); + adj_mt_finish(adj); + XFREE (MTYPE_ISIS_ADJACENCY, adj); return; } @@ -521,3 +524,20 @@ isis_adj_build_up_list (struct list *adjdb, struct list *list) return; } + +int +isis_adj_usage2levels(enum isis_adj_usage usage) +{ + switch (usage) + { + case ISIS_ADJ_LEVEL1: + return IS_LEVEL_1; + case ISIS_ADJ_LEVEL2: + return IS_LEVEL_2; + case ISIS_ADJ_LEVEL1AND2: + return IS_LEVEL_1 | IS_LEVEL_2; + default: + break; + } + return 0; +} |
