]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix sending remote interface ip address after enabling MPLS TE
authorLouis Scalbert <louis.scalbert@6wind.com>
Mon, 17 Oct 2022 15:35:12 +0000 (17:35 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Mon, 24 Oct 2022 11:48:33 +0000 (13:48 +0200)
commit78d905be544770e6d5902ac93e34d8c296fb34a6
tree651f7be9b64a9bc8e65bf89e99913c9f0b926ada
parent6eb8da37b0e955d4cbe034d4d49743d4d5266101
isisd: fix sending remote interface ip address after enabling MPLS TE

If MPLS TE is enabled, the router encodes the local and remote interface
IP address in the "Extended Reachability" TLV.

> east-vm(config)# do show isis database detail east-vm.00-00
>  Extended Reachability: 0007.e901.3333.00 (Metric: 10)
>    Local Interface IP Address(es): 10.126.0.2
>    Remote Interface IP Address(es): 10.126.0.3
>    Maximum Bandwidth: 1.76258e+08 (Bytes/sec)

The remote interface is added when the circuit adjacency comes up after
setting MPLS TE. However, if MPLS TE is enabled after, the remote
address is not added. It happens after disabling and re-enabling the
MPLS TE.

> east-vm(config)# router isis 1
> east-vm(config-router)# no mpls on
> east-vm(config-router)# mpls on
> east-vm(config)# do show isis database detail east-vm.00-00
>  Extended Reachability: 0007.e901.3333.00 (Metric: 10)
>    Local Interface IP Address(es): 10.126.0.2
>    Maximum Bandwidth: 1.76258e+08 (Bytes/sec)

Update the remote IPv4 and IPv6 of all adjacencies after enabling MPLS
TE.

Fixes: 1b3f47d04c ("isisd: Update TLVs processing for TE, RI & SR")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
isisd/isis_te.c