diff --git a/src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb b/src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb index 691ade0310..fcd4bea6f6 100644 --- a/src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb +++ b/src/vnm_mad/remotes/802.1Q/vlan_tag_driver.rb @@ -43,7 +43,7 @@ class VLANTagDriver < VNMMAD::VLANDriver # This function creates and activate a VLAN device ############################################################################ def create_vlan_dev - mtu = @nic[:mtu] ? "mtu #{@nic[:mtu]}" : "" + mtu = @nic[:mtu] ? "mtu #{@nic[:mtu]}" : "mtu #{CONF[:vlan_mtu]}" OpenNebula.exec_and_log("#{command(:ip)} link add link"\ " #{@nic[:phydev]} name #{@nic[:vlan_dev]} #{mtu} type vlan id"\ diff --git a/src/vnm_mad/remotes/OpenNebulaNetwork.conf b/src/vnm_mad/remotes/OpenNebulaNetwork.conf index 16ae01a7eb..51e2ef5fe8 100644 --- a/src/vnm_mad/remotes/OpenNebulaNetwork.conf +++ b/src/vnm_mad/remotes/OpenNebulaNetwork.conf @@ -25,6 +25,13 @@ # Enable ARP Cache Poisoning Prevention Rules :arp_cache_poisoning: true +################################################################################ +# 802.1Q Options +################################################################################ + +# Default MTU for the 802.1Q interface +:vlan_mtu: 1500 + ################################################################################ # VXLAN Options ################################################################################