X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=isisd%2Fisisd.h;h=c5f3f37341f2251ea5bb5de60f186c05ef2f7954;hb=56e22fb62cade6099d4b0cc47ba2d2d3e18d6565;hp=2c0ea203f3ecc0df3ac16a0cc3581a9b430b56bd;hpb=6f004b60ed2c23909d9e3bf0ef47672e2947fa2a;p=mirror_frr.git diff --git a/isisd/isisd.h b/isisd/isisd.h index 2c0ea203f..c5f3f3734 100644 --- a/isisd/isisd.h +++ b/isisd/isisd.h @@ -29,6 +29,7 @@ #include "isisd/isis_common.h" #include "isisd/isis_redist.h" #include "isisd/isis_pdu_counter.h" +#include "isisd/isis_circuit.h" #include "isis_flags.h" #include "dict.h" #include "isis_memory.h" @@ -50,6 +51,7 @@ static const bool fabricd = false; #define PROTO_REDIST_STR FRR_REDIST_STR_ISISD #define PROTO_REDIST_HELP FRR_REDIST_HELP_STR_ISISD #define ROUTER_NODE ISIS_NODE +extern void isis_cli_init(void); #endif extern struct zebra_privs_t isisd_privs; @@ -96,6 +98,13 @@ struct lsp_refresh_arg { int level; }; +/* for yang configuration */ +enum isis_metric_style { + ISIS_NARROW_METRIC = 0, + ISIS_WIDE_METRIC, + ISIS_TRANSITION_METRIC, +}; + struct isis_area { struct isis *isis; /* back pointer */ dict_t *lspdb[ISIS_LEVELS]; /* link-state dbs */ @@ -184,6 +193,7 @@ void isis_new(unsigned long); struct isis_area *isis_area_create(const char *); struct isis_area *isis_area_lookup(const char *); int isis_area_get(struct vty *vty, const char *area_tag); +int isis_area_destroy(const char *area_tag); void print_debug(struct vty *, int, int); struct isis_lsp *lsp_for_arg(const char *argv, dict_t *lspdb); @@ -208,6 +218,13 @@ int isis_area_passwd_cleartext_set(struct isis_area *area, int level, int isis_area_passwd_hmac_md5_set(struct isis_area *area, int level, const char *passwd, uint8_t snp_auth); +extern const struct frr_yang_module_info frr_isisd_info; +extern void isis_northbound_init(void); + +/* YANG northbound notifications */ +extern void isis_notif_db_overload(const struct isis_area *area, bool overload); +extern void isis_notif_lsp_too_large(const struct isis_circuit *circuit, + uint32_t pdu_size, const char *lsp_id); /* Master of threads. */ extern struct thread_master *master;