From 76d3627ccd67aead45518878e664833fb4bf5971 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 8 Jul 2024 08:12:27 +0200 Subject: [PATCH] confd: fix vid sanity check, 4095 is reserved Signed-off-by: Joachim Wiberg --- src/confd/src/ietf-interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index a8da55c2..9fc4f5e7 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -152,7 +152,7 @@ static int ifchange_cand_infer_vlan(sr_session_ctx_t *session, const char *path) goto out_free_ifname; } - if (vid < 1 || vid > 4095) + if (vid < 1 || vid > 4094) goto out_free_ifname; err = srx_nitems(session, &cnt, "/interfaces/interface[name='%s']/name", ifname);