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

Add default MTU for the 802.1Q interface (#175)

F  #4958: Add default MTU for the 802.1Q interface
This commit is contained in:
Guillaume Oberlé 2016-12-28 00:29:29 +01:00 committed by Ruben S. Montero
parent 4429031117
commit 7920843308
2 changed files with 8 additions and 1 deletions

View File

@ -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"\

View File

@ -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
################################################################################