Browse Source

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
Vlad Naboichenko 2 years ago
parent
commit
87e82961df

+ 1
- 1
deployment_scripts/puppet/modules/contrail/lib/puppet/parser/functions/get_physdev_mtu.rb View File

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

Loading…
Cancel
Save