From 2f045c73decda4220b81a00a29bd85159a30b477 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 21 Sep 2023 15:34:04 +0200 Subject: [PATCH] confd: only warn missing outer-tag if missing from cif Signed-off-by: Joachim Wiberg --- src/confd/src/ietf-interfaces.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index b08dd62c..9efb4815 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -865,7 +865,13 @@ static int netdag_gen_vlan(struct dagger *net, struct lyd_node *dif, "outer-tag", NULL); if (!otag) { - ERROR("%s: missing mandatory outer-tag", ifname); + /* + * Note: this is only an error if outer-tag is missing + * from cif, otherwise it just means the interface had a + * a change that was not related to the VLAN config. + */ + if (!dif) + ERROR("%s: missing mandatory outer-tag", ifname); return 0; }