mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
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:
parent
981cc629e8
commit
8e4b740efb
@ -77,7 +77,6 @@ unsigned long debug_sr;
|
|||||||
|
|
||||||
struct isis *isis = NULL;
|
struct isis *isis = NULL;
|
||||||
|
|
||||||
DEFINE_QOBJ_TYPE(isis)
|
|
||||||
DEFINE_QOBJ_TYPE(isis_area)
|
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->init_circ_list = list_new();
|
||||||
isis->uptime = time(NULL);
|
isis->uptime = time(NULL);
|
||||||
dyn_cache_init();
|
dyn_cache_init();
|
||||||
|
|
||||||
QOBJ_REG(isis, isis);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct isis_area *isis_area_create(const char *area_tag)
|
struct isis_area *isis_area_create(const char *area_tag)
|
||||||
|
@ -77,12 +77,9 @@ struct isis {
|
|||||||
uint32_t circuit_ids_used[8]; /* 256 bits to track circuit ids 1 through 255 */
|
uint32_t circuit_ids_used[8]; /* 256 bits to track circuit ids 1 through 255 */
|
||||||
|
|
||||||
struct route_table *ext_info[REDIST_PROTOCOL_COUNT];
|
struct route_table *ext_info[REDIST_PROTOCOL_COUNT];
|
||||||
|
|
||||||
QOBJ_FIELDS
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct isis *isis;
|
extern struct isis *isis;
|
||||||
DECLARE_QOBJ_TYPE(isis_area)
|
|
||||||
|
|
||||||
enum spf_tree_id {
|
enum spf_tree_id {
|
||||||
SPFTREE_IPV4 = 0,
|
SPFTREE_IPV4 = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user