Don't update DPDK related info for interfaces
Generally in tests we update networks to interfaces
assignments only, other interface related configuration
is modified in specific tests (for network features).
Remove 'dpdk' from interfaces properties while performing
PUT request as temporary workaround for bug in API.
Change-Id: I926a6655b35ec62f5daf583123b002b6e1b40eb7
Related-bug: #1564102
(cherry picked from commit 19c47926a6
)
This commit is contained in:
parent
0d915c85eb
commit
a5469cd6d3
@ -1327,7 +1327,7 @@ class FuelWebClient(object):
|
||||
i in all_networks.keys()]
|
||||
|
||||
self.client.put_node_interfaces(
|
||||
[{'id': node_id, 'interfaces': interfaces}])
|
||||
[{'id': node_id, 'interfaces': interfaces}], without_dpdk=True)
|
||||
|
||||
@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}])
|
||||
[{'id': node_id, 'interfaces': interfaces}], without_dpdk=True)
|
||||
|
||||
def change_default_network_settings(self):
|
||||
def fetch_networks(networks):
|
||||
|
@ -222,7 +222,13 @@ class NailgunClient(object):
|
||||
|
||||
@logwrap
|
||||
@json_parse
|
||||
def put_node_interfaces(self, data):
|
||||
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)
|
||||
|
||||
return self.client.put("/api/nodes/interfaces", data)
|
||||
|
||||
@logwrap
|
||||
|
Loading…
Reference in New Issue
Block a user