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:
committed by
Julien Fortin
parent
8515db2733
commit
aa4c8a2d94
@ -890,7 +890,8 @@ class vxlan(Addon, moduleBase):
|
|||||||
else:
|
else:
|
||||||
if ifaceobj.link_privflags & ifaceLinkPrivFlags.SINGLE_VXLAN:
|
if ifaceobj.link_privflags & ifaceLinkPrivFlags.SINGLE_VXLAN:
|
||||||
if link_exists:
|
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:
|
else:
|
||||||
self.iproute2.link_add_single_vxlan(
|
self.iproute2.link_add_single_vxlan(
|
||||||
ifname,
|
ifname,
|
||||||
|
Reference in New Issue
Block a user