From 531f18918366d02a8a1c86576556e02eee59e8c9 Mon Sep 17 00:00:00 2001 From: Catalina Focsa Date: Wed, 17 May 2017 11:51:52 +0200 Subject: 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 --- ...nd-offloading-modes-and-MTU-to-interfaces.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 patches/opnfv-fuel/0010-Append-offloading-modes-and-MTU-to-interfaces.patch 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 +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 +--- + 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): -- cgit 1.2.3-korg