summaryrefslogtreecommitdiff
path: root/isisd/isis_ldp_sync.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-30 01:58:50 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-30 03:17:41 +0300
commitb11f166c3e35eff799176adf6915a0b9991bd836 (patch)
tree591b4b36f591f1b598ff2e9e2b570b0755c11cca /isisd/isis_ldp_sync.c
parent67486f32ae23668093d282cba58ac4f9cbab1294 (diff)
isisd: remove useless checks when configuring ldp-sync
We have checks on NB validation stage to prevent configuring LDP sync on interfaces in non-default VRFs. These checks are completely useless, because the interface can be easily moved to another VRF after configuring LDP sync. Instead, the check must be done in the actual code to cover the case when the interface is moved between VRFs. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_ldp_sync.c')
-rw-r--r--isisd/isis_ldp_sync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_ldp_sync.c b/isisd/isis_ldp_sync.c
index 62d8b8334a..9d494121c8 100644
--- a/isisd/isis_ldp_sync.c
+++ b/isisd/isis_ldp_sync.c
@@ -486,6 +486,9 @@ void isis_if_ldp_sync_enable(struct isis_circuit *circuit)
if (if_is_loopback(circuit->interface))
return;
+ if (circuit->interface->vrf->vrf_id != VRF_DEFAULT)
+ return;
+
ils_debug("ldp_sync: enable if %s", circuit->interface->name);
if (!CHECK_FLAG(area->ldp_sync_cmd.flags, LDP_SYNC_FLAG_ENABLE))