diff options
| author | Kaushik <kaushik@niralnetworks.com> | 2020-07-13 05:37:59 -0700 | 
|---|---|---|
| committer | Kaushik <kaushik@niralnetworks.com> | 2020-08-14 13:46:22 -0700 | 
| commit | eab88f3655ba7549211f6bcc6fbc8edc3d51ede1 (patch) | |
| tree | b8b2601b48d5f19a3d6648174567c8c364a2e8f3 /isisd/isis_main.c | |
| parent | 40ce7a420341c7609945727de9dcbd71b0c17485 (diff) | |
isisd : Transformational changes to support different VRFs.
1. Created a structure "isis master".
2. All the changes are related to handle ISIS with different vrf.
3. A new variable added in structure "isis" to store the vrf name.
4. The display commands for isis is changed to support different VRFs.
Signed-off-by: Kaushik <kaushik@niralnetworks.com>
Diffstat (limited to 'isisd/isis_main.c')
| -rw-r--r-- | isisd/isis_main.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/isisd/isis_main.c b/isisd/isis_main.c index 2317b166c6..ed4b206851 100644 --- a/isisd/isis_main.c +++ b/isisd/isis_main.c @@ -101,6 +101,7 @@ void sigusr1(void);  static __attribute__((__noreturn__)) void terminate(int i)  { +	isis_terminate();  	isis_sr_term();  	isis_zebra_stop();  	exit(i); @@ -233,7 +234,8 @@ int main(int argc, char **argv, char **envp)  	}  	/* thread master */ -	master = frr_init(); +	isis_master_init(frr_init()); +	master = im->master;  	/*  	 *  initializations @@ -259,7 +261,7 @@ int main(int argc, char **argv, char **envp)  	mt_init();  	/* create the global 'isis' instance */ -	isis_new(1, VRF_DEFAULT); +	isis_global_instance_create();  	isis_zebra_init(master, instance);  	isis_bfd_init();  | 
