Skip to content

Commit

Permalink
isisd: Add vrf_id to the main isis structure
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Sep 10, 2019
1 parent cf31949 commit 260fcb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion isisd/isis_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ int main(int argc, char **argv, char **envp)
mt_init();

/* create the global 'isis' instance */
isis_new(1);
isis_new(1, VRF_DEFAULT);

isis_zebra_init(master);
isis_bfd_init();
Expand Down
3 changes: 2 additions & 1 deletion isisd/isisd.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ int clear_isis_neighbor_common(struct vty *, const char *id);
int isis_config_write(struct vty *);


void isis_new(unsigned long process_id)
void isis_new(unsigned long process_id, vrf_id_t vrf_id)
{
isis = XCALLOC(MTYPE_ISIS, sizeof(struct isis));
/*
* Default values
*/
isis->vrf_id = vrf_id;
isis->max_area_addrs = 3;
isis->process_id = process_id;
isis->router_id = 0;
Expand Down
3 changes: 2 additions & 1 deletion isisd/isisd.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ extern struct zebra_privs_t isisd_privs;
struct fabricd;

struct isis {
vrf_id_t vrf_id;
unsigned long process_id;
int sysid_set;
uint8_t sysid[ISIS_SYS_ID_LEN]; /* SystemID for this IS */
Expand Down Expand Up @@ -190,7 +191,7 @@ struct isis_area {
DECLARE_QOBJ_TYPE(isis_area)

void isis_init(void);
void isis_new(unsigned long);
void isis_new(unsigned long process_id, vrf_id_t vrf_id);
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);
Expand Down

0 comments on commit 260fcb9

Please sign in to comment.