Merge "ifcfg: don't restart ovs if --no-activate is specified"
This commit is contained in:
commit
96d17b2517
|
@ -1100,15 +1100,15 @@ class IfcfgNetConfig(os_net_config.NetConfig):
|
||||||
for oldname, newname in self.renamed_interfaces.items():
|
for oldname, newname in self.renamed_interfaces.items():
|
||||||
self.ifrename(oldname, newname)
|
self.ifrename(oldname, newname)
|
||||||
|
|
||||||
# DPDK initialization is done before running os-net-config, to make
|
# DPDK initialization is done before running os-net-config, to make
|
||||||
# the DPDK ports available when enabled. DPDK Hotplug support is
|
# the DPDK ports available when enabled. DPDK Hotplug support is
|
||||||
# supported only in OvS 2.7 version. Until then, OvS needs to be
|
# supported only in OvS 2.7 version. Until then, OvS needs to be
|
||||||
# restarted after adding a DPDK port. This change will be removed on
|
# restarted after adding a DPDK port. This change will be removed
|
||||||
# migration to OvS 2.7 where DPDK Hotplug support is available.
|
# on migration to OvS 2.7 where DPDK Hotplug support is available.
|
||||||
if ovs_needs_restart:
|
if ovs_needs_restart:
|
||||||
msg = "Restart openvswitch"
|
msg = "Restart openvswitch"
|
||||||
self.execute(msg, '/usr/bin/systemctl',
|
self.execute(msg, '/usr/bin/systemctl',
|
||||||
'restart', 'openvswitch')
|
'restart', 'openvswitch')
|
||||||
|
|
||||||
for location, data in update_files.items():
|
for location, data in update_files.items():
|
||||||
self.write_config(location, data)
|
self.write_config(location, data)
|
||||||
|
|
Loading…
Reference in New Issue