]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vxlan: single-vxlan: remove local ip cidr before executing iproute2 link add
authorJulien Fortin <julien@cumulusnetworks.com>
Mon, 29 Jun 2020 10:23:04 +0000 (12:23 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 6 Aug 2020 12:17:08 +0000 (14:17 +0200)
commitcaac1e90b082dd421ea162c0d1879dcc1e50386b
treea781619c530dc3bffde281132b37c58d94c261e5
parent366da8b3348cba7510a6edb792881f2d3e8afc5e
addons: vxlan: single-vxlan: remove local ip cidr before executing iproute2 link add

When creating a single-vxlan device we were sending local tunnel ip address with ip
network prefix. This patch avoid the following error:

error: cmd '/bin/ip link add dev vxlan0 type vxlan external local 27.0.0.9/32 dstport 4789' failed: returned 1 (Error: any valid address is expected rather than "27.0.0.9/32".
)

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/vxlan.py