Revert "Don't update DPDK related info for interfaces"
The workaround doesn't help, see https://bugs.launchpad.net/fuel/+bug/1564102/comments/24
This reverts commit 19c47926a6
.
Change-Id: I0a008d976c428e03fbdfa8e46dd3a9ffdfd7217b
This commit is contained in:
parent
abc8eb9179
commit
40e17c3856
@ -1327,7 +1327,7 @@ class FuelWebClient(object):
|
||||
i in all_networks.keys()]
|
||||
|
||||
self.client.put_node_interfaces(
|
||||
[{'id': node_id, 'interfaces': interfaces}], without_dpdk=True)
|
||||
[{'id': node_id, 'interfaces': interfaces}])
|
||||
|
||||
@logwrap
|
||||
def update_node_disk(self, node_id, disks_dict):
|
||||
@ -1499,7 +1499,7 @@ class FuelWebClient(object):
|
||||
new_mode['name'],
|
||||
interface_to_update))
|
||||
self.client.put_node_interfaces(
|
||||
[{'id': node_id, 'interfaces': interfaces}], without_dpdk=True)
|
||||
[{'id': node_id, 'interfaces': interfaces}])
|
||||
|
||||
def change_default_network_settings(self):
|
||||
def fetch_networks(networks):
|
||||
|
@ -222,13 +222,7 @@ class NailgunClient(object):
|
||||
|
||||
@logwrap
|
||||
@json_parse
|
||||
def put_node_interfaces(self, data, without_dpdk=False):
|
||||
# TODO: workaround for LP#1564102, remove when the bug is fixed in API
|
||||
if without_dpdk:
|
||||
for iface in data:
|
||||
if 'interface_properties' in iface:
|
||||
iface['interface_properties'].pop("dpdk", None)
|
||||
|
||||
def put_node_interfaces(self, data):
|
||||
return self.client.put("/api/nodes/interfaces", data)
|
||||
|
||||
@logwrap
|
||||
|
Loading…
Reference in New Issue
Block a user