mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-03 04:12:11 +00:00
isisd: fix local address TE TLV
we were not correctly checking the MPLS-TE status of the area when adding an IP address to a circuit, and this was preventing the local address TLV to be populated after an interfaced flap. Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
This commit is contained in:
parent
276b698a43
commit
d80e23f8d3
@ -267,7 +267,8 @@ void isis_circuit_add_addr(struct isis_circuit *circuit,
|
||||
listnode_add(circuit->ip_addrs, ipv4);
|
||||
|
||||
/* Update Local IP address parameter if MPLS TE is enable */
|
||||
if (circuit->ext && IS_MPLS_TE(circuit->ext)) {
|
||||
if (circuit->ext && circuit->area
|
||||
&& IS_MPLS_TE(circuit->area->mta)) {
|
||||
circuit->ext->local_addr.s_addr = ipv4->prefix.s_addr;
|
||||
SET_SUBTLV(circuit->ext, EXT_LOCAL_ADDR);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user