]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix interface ldp-sync configuration 8907/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 22 Jun 2021 21:27:55 +0000 (00:27 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 23 Jun 2021 12:52:37 +0000 (15:52 +0300)
commite432649280b47b55723ca3ce6b39bacc039b6e18
treedc1540353ddf4aad24489bf32c44a0327fe1c7f2
parent80ab95b134b00a115175adc46b82a3f69f58ec87
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>
isisd/isis_nb_config.c