aboutsummaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel
diff options
context:
space:
mode:
authorCatalina Focsa <catalina.focsa@enea.com>2017-05-17 11:51:52 +0200
committerCatalina Focsa <catalina.focsa@enea.com>2017-05-26 14:59:50 +0000
commit531f18918366d02a8a1c86576556e02eee59e8c9 (patch)
tree99f68d30ebef2cbde1bbf0184efe558bad8fc916 /patches/opnfv-fuel
parentb11ee1d7c13dd3ba42c36d7f73f99ac097ed534d (diff)
Append offloading modes and MTU to interfaces
Select information regarding offloading modes and MTU and append it to the interface properties key, for each defined interface. Revert previous related commit, due to incompatibility with dea parsing and interpreting methods. JIRA: https://jira.opnfv.org/browse/ARMBAND-199 JIRA: https://jira.opnfv.org/browse/ARMBAND-251 JIRA: https://jira.opnfv.org/browse/ARMBAND-253 Change-Id: I6227ba6b5fed07b417b13d3b7a4e07f63a7a2383 Signed-off-by: Catalina Focsa <catalina.focsa@enea.com>
Diffstat (limited to 'patches/opnfv-fuel')
-rw-r--r--patches/opnfv-fuel/0010-Append-offloading-modes-and-MTU-to-interfaces.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0010-Append-offloading-modes-and-MTU-to-interfaces.patch b/patches/opnfv-fuel/0010-Append-offloading-modes-and-MTU-to-interfaces.patch
new file mode 100644
index 00000000..17517637
--- /dev/null
+++ b/patches/opnfv-fuel/0010-Append-offloading-modes-and-MTU-to-interfaces.patch
@@ -0,0 +1,43 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Catalina Focsa <catalina.focsa@enea.com>
+Date: Fri, 26 May 2017 15:05:17 +0200
+Subject: [PATCH] Append offloading modes and MTU to interfaces
+
+Select information regarding offloading modes
+and MTU and append it to the interface properties key,
+for each defined interface.
+
+JIRA: https://jira.opnfv.org/browse/ARMBAND-199
+JIRA: https://jira.opnfv.org/browse/ARMBAND-251
+JIRA: https://jira.opnfv.org/browse/ARMBAND-253
+
+Signed-off-by: Catalina Focsa <catalina.focsa@enea.com>
+---
+ deploy/reap.py | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/deploy/reap.py b/deploy/reap.py
+index fe6bebf..56b01d9 100644
+--- a/deploy/reap.py
++++ b/deploy/reap.py
+@@ -358,6 +358,13 @@ class Reap(object):
+ pxe_mac = interface['mac']
+ if networks:
+ interface_config[interface['name']] = networks
++ dict_prop = {'mtu': {k:v for k, v in \
++ interface['attributes']['mtu'].items() if k == 'value'}}
++ dict_prop.update({'offloading': {k:v for k, v in \
++ interface['attributes']['offloading'].items() \
++ if k == 'modes'}})
++ interface_config[interface['name']].append\
++ ({'interface_properties': dict_prop})
+ return interface_config, pxe_mac
+
+ def read_yaml(self, yaml_file):