1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

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 <julien@cumulusnetworks.com>
Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2020-09-10 16:50:54 +02:00
committed by Julien Fortin
parent 8515db2733
commit aa4c8a2d94

View File

@ -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,