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:
parent
4913edf43f
commit
87e82961df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue