aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/cloud
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-01-12 13:06:54 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-01-12 13:14:39 +0400
commita1c044d290aedb0dd5fd447b550e40a9cd3f61f8 (patch)
tree1d0633960c011356a07550e0e6dcee5a183886b7 /deploy/cloud
parent4bc8d2f3dae18bfaa3a63e8ff170862107d1d0a3 (diff)
Enable dpdk property on interface
Set dpdk property in network attributes since interface_properties have been removed in scope of nics-and-nodes-attributes-via-plugin blueprint. JIRA: FUEL-243 Change-Id: I7873d3a5c738d421f64237ff41d937856012d65a Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'deploy/cloud')
-rw-r--r--deploy/cloud/configure_nodes.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/deploy/cloud/configure_nodes.py b/deploy/cloud/configure_nodes.py
index f9f65afb5..eabec397c 100644
--- a/deploy/cloud/configure_nodes.py
+++ b/deploy/cloud/configure_nodes.py
@@ -142,7 +142,8 @@ class ConfigureNodes(object):
# ens5:
# - interface_properties:
# dpdk:
- # enabled: true
+ # enabled:
+ # value: true
# - private
# ens6:
# - public
@@ -169,19 +170,19 @@ class ConfigureNodes(object):
if interface['name'] in interface_config:
for prop in interface_config[interface['name']]:
net = {}
- #net name
+ # net name
if isinstance(prop, six.string_types):
net['id'] = net_name_id[prop]
net['name'] = prop
interface['assigned_networks'].append(net)
- #network properties
+ # network properties
elif isinstance(prop, dict):
- if not 'interface_properties' in prop:
- log('Interface configuration contain unknow dict: %s' % prop)
+ if 'interface_properties' not in prop:
+ log('Interface configuration contains unknown dict: %s' % prop)
continue
- interface['interface_properties'] = \
- self._merge_dicts(interface.get('interface_properties', {}),
- prop.get('interface_properties', {}))
+ interface['attributes'] = self._merge_dicts(
+ interface.get('attributes', {}),
+ prop.get('interface_properties', {}))
with io.open(interface_yaml, 'w') as stream:
yaml.dump(interfaces, stream, default_flow_style=False)
@@ -198,4 +199,3 @@ class ConfigureNodes(object):
continue
result[k] = copy.deepcopy(v)
return result
-