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:
parent
4429031117
commit
7920843308
@ -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"\
|
||||
|
@ -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
|
||||
################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user