From aa4c8a2d9484a31773ed9c600926c348f69b01ee Mon Sep 17 00:00:00 2001 From: Julien Fortin Date: Thu, 10 Sep 2020 16:50:54 +0200 Subject: [PATCH] addons: vxlan: single-device: update log.warning when device already exists updating an existing singe-vxlan-device is not supported yet, we should warn the user accordingly. Signed-off-by: Julien Fortin Signed-off-by: Julien Fortin --- ifupdown2/addons/vxlan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ifupdown2/addons/vxlan.py b/ifupdown2/addons/vxlan.py index 1199cba..d8ebe11 100644 --- a/ifupdown2/addons/vxlan.py +++ b/ifupdown2/addons/vxlan.py @@ -890,7 +890,8 @@ class vxlan(Addon, moduleBase): else: if ifaceobj.link_privflags & ifaceLinkPrivFlags.SINGLE_VXLAN: if link_exists: - self.logger.warning("%s: updating existing single vxlan device is not support yet" % ifname) + self.logger.warning("%s: updating existing single vxlan device is not supported yet " + "(please run 'ifdown %s; ifup %s'" % (ifname, ifname, ifname)) else: self.iproute2.link_add_single_vxlan( ifname,