1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Fix vxlan device creation (#424)

B #5302: Use of IPAddr class instead of non existent module VNMMAD::VNMNetwork::IPv4
This commit is contained in:
laurent 2017-08-04 11:35:08 +02:00 committed by Ruben S. Montero
parent a6addb314e
commit 219b0545ab

View File

@ -51,7 +51,7 @@ class VXLANDriver < VNMMAD::VLANDriver
end
mc = ipaddr.to_i + @nic[:vlan_id].to_i
mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc)
mcs = IPAddr.new(mc, Socket::AF_INET).to_s
mtu = @nic[:mtu] ? "mtu #{@nic[:mtu]}" : "mtu #{@nic[:conf][:vxlan_mtu]}"
ttl = @nic[:conf][:vxlan_ttl] ? "ttl #{@nic[:conf][:vxlan_ttl]}" : ""