confd: only warn missing outer-tag if missing from cif

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-09-21 16:34:48 +02:00
parent 34a89c4909
commit 2f045c73de
+7 -1
View File
@@ -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;
}