Fix function that get mtu for vhost0

On dpdk computes function get_physdev_mtu dont get right mtu
because we override action for bond0 to noop.

[DE271493]

Change-Id: I12d317df777cf503408aa28152634206d11c1e5a
This commit is contained in:
Vlad Naboichenko 2017-03-03 14:28:59 -08:00 committed by Illia Polliul
parent 4913edf43f
commit 87e82961df
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ Puppet::Parser::Functions::newfunction(:get_physdev_mtu, :type => :rvalue, :arit
interfaces = cfg[:interfaces]
transformations.each do |transform|
if (transform[:action] == 'add-bond') && (transform[:name] == physdev)
if transform[:name] == physdev
mtu = transform[:mtu]
return mtu if mtu
end