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:
parent
a6addb314e
commit
219b0545ab
@ -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]}" : ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user