diff --git a/src/vnm_mad/remotes/OpenNebulaNetwork.conf b/src/vnm_mad/remotes/OpenNebulaNetwork.conf index 51e2ef5fe8..a4f1ddd30f 100644 --- a/src/vnm_mad/remotes/OpenNebulaNetwork.conf +++ b/src/vnm_mad/remotes/OpenNebulaNetwork.conf @@ -40,3 +40,5 @@ :vxlan_mc: 239.0.0.0 # Time To Live (TTL) should be > 1 in routed multicast networks (IGMP) :vxlan_ttl: 16 +# Default MTU for the VXLAN interface +:vxlan_mtu: 1500 diff --git a/src/vnm_mad/remotes/vxlan/vxlan_driver.rb b/src/vnm_mad/remotes/vxlan/vxlan_driver.rb index 509c7c24e1..051198338b 100644 --- a/src/vnm_mad/remotes/vxlan/vxlan_driver.rb +++ b/src/vnm_mad/remotes/vxlan/vxlan_driver.rb @@ -45,7 +45,7 @@ class VXLANDriver < VNMMAD::VLANDriver def create_vlan_dev mc = VNMMAD::VNMNetwork::IPv4.to_i(CONF[:vxlan_mc]) + @nic[:vlan_id].to_i mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc) - mtu = @nic[:mtu] ? "mtu #{@nic[:mtu]}" : "" + mtu = @nic[:mtu] ? "mtu #{@nic[:mtu]}" : "mtu #{CONF[:vxlan_mtu]}" ttl = CONF[:vxlan_ttl] ? "ttl #{CONF[:vxlan_ttl]}" : "" OpenNebula.exec_and_log("#{command(:ip)} link add #{@nic[:vlan_dev]}"\