]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix interface ldp-sync configuration 8929/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 22 Jun 2021 21:27:55 +0000 (00:27 +0300)
committermergify-bot <noreply@mergify.io>
Sat, 26 Jun 2021 09:55:01 +0000 (09:55 +0000)
commitb596b5e5e5c79ec9454f6a17a78f2cc510576aac
tree4106bebcf5f4d72f0e81a5f759eb75116229eca7
parent79a1bdc21b59f337d9cb203b14f295bacd00f7f5
isisd: fix interface ldp-sync configuration

There are two checks done when configuring ldp-sync on an interface:
- interface is not a loopback
- interface is in the default VRF
Both checks are incorrectly done using the operational data.

The second check can be done using only config data - do that.

The first check can't be done using only configurational data, but it's
not necessary. LDP sync code doesn't operate on loopback interfaces
already. There's no harm in allowing this to be configured.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit e432649280b47b55723ca3ce6b39bacc039b6e18)
isisd/isis_nb_config.c