isisd: remove unnecessary QOBJ usage

The global isis structure can't be created/destroyed using the CLI,
so there's no need to define a QOBJ for it.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2020-08-10 23:04:19 -03:00
parent 981cc629e8
commit 8e4b740efb
2 changed files with 0 additions and 6 deletions

View File

@ -77,7 +77,6 @@ unsigned long debug_sr;
struct isis *isis = NULL;
DEFINE_QOBJ_TYPE(isis)
DEFINE_QOBJ_TYPE(isis_area)
/*
@ -105,8 +104,6 @@ void isis_new(unsigned long process_id, vrf_id_t vrf_id)
isis->init_circ_list = list_new();
isis->uptime = time(NULL);
dyn_cache_init();
QOBJ_REG(isis, isis);
}
struct isis_area *isis_area_create(const char *area_tag)

View File

@ -77,12 +77,9 @@ struct isis {
uint32_t circuit_ids_used[8]; /* 256 bits to track circuit ids 1 through 255 */
struct route_table *ext_info[REDIST_PROTOCOL_COUNT];
QOBJ_FIELDS
};
extern struct isis *isis;
DECLARE_QOBJ_TYPE(isis_area)
enum spf_tree_id {
SPFTREE_IPV4 = 0,