diff options
author | Karthik S <ksundara@redhat.com> | 2017-05-30 07:21:52 -0400 |
---|---|---|
committer | Karthik S <ksundara@redhat.com> | 2017-05-31 02:42:55 -0400 |
commit | cc7ff987cae3452a28f85ca3cabef49a3a64a2ff (patch) | |
tree | 9b3f1799c54486ca81f1179010d71ef1cbb3891a /os_net_config/impl_ifcfg.py | |
parent | e7e81ac01122dd1b7711116d583a69fb655e0bca (diff) |
MTU setting for OVSDpdkBond
This patch allows the MTU setting for DPDK bonds. In case of DPDK
bonds, the MTU setting needs to be done for each of the interfaces
attached to the bond.
Change-Id: Ida627313d14a674430b2aff3644fd62b2e0bcab7
Implements: blueprint ovs-2-6-features-dpdk
Signed-off-by: Karthik S <ksundara@redhat.com>
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r-- | os_net_config/impl_ifcfg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index 6f35688..18de8fc 100644 --- a/os_net_config/impl_ifcfg.py +++ b/os_net_config/impl_ifcfg.py @@ -316,6 +316,12 @@ class IfcfgNetConfig(os_net_config.NetConfig): if base_opt.members: members = [member.name for member in base_opt.members] data += ("BOND_IFACES=\"%s\"\n" % " ".join(members)) + # MTU configuration given for the OvsDpdkbond shall be applied + # to each of the members of the OvsDpdkbond + if base_opt.mtu: + for member in base_opt.members: + ovs_extra.append("set Interface %s mtu_request=$MTU" % + member.name) if base_opt.ovs_options: data += "OVS_OPTIONS=\"%s\"\n" % base_opt.ovs_options ovs_extra.extend(base_opt.ovs_extra) |