diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2019-04-15 16:11:40 +0200 | 
|---|---|---|
| committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2019-04-25 18:59:26 +0200 | 
| commit | 2e2a8b913607fa7ea8744f1fee98208e38cef5df (patch) | |
| tree | 2cee1a8859c39a3f75913c277fb3c8ace65284f3 /isisd/isis_pdu.c | |
| parent | bbd8da796b1ad74ca5ad2e6e0ff22178dcb63f0b (diff) | |
isisd: Add IS-IS-TE support per Area
Solve issue #4032
 - Change MPLS-TE from global to per Area
 - Add new mpls_te_area structure to area in replacement of global variable
isisMPLS_TE
 - Move mpls-te from global to instance in frr-isisd.yang
 - Change code in isis_te.c, isis_northbound.c, isis_cli.c, isis_pdu.c,
isis_lsp.c and isis_zebra.c accordingly
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'isisd/isis_pdu.c')
| -rw-r--r-- | isisd/isis_pdu.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index 8e9302963d..418b59da47 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -201,8 +201,9 @@ static int process_p2p_hello(struct iih_info *iih)  				      adj);  	/* Update MPLS TE Remote IP address parameter if possible */ -	if (IS_MPLS_TE(isisMplsTE) && iih->circuit->mtc -	    && IS_CIRCUIT_TE(iih->circuit->mtc) && adj->ipv4_address_count) +	if (IS_MPLS_TE(iih->circuit->area->mta) +	    && IS_MPLS_TE(iih->circuit->mtc) +	    && adj->ipv4_address_count)  		set_circuitparams_rmt_ipaddr(iih->circuit->mtc,  					     adj->ipv4_addresses[0]);  | 
