git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new steps to change a node's fcdistro in a bonding environment
[tests.git]
/
system
/
config_no_omf.py
diff --git
a/system/config_no_omf.py
b/system/config_no_omf.py
index
cdb4ce0
..
8d224ef
100644
(file)
--- a/
system/config_no_omf.py
+++ b/
system/config_no_omf.py
@@
-1,5
+1,6
@@
+# -*- python3 -*-
# Thierry Parmentelat <thierry.parmentelat@inria.fr>
# Thierry Parmentelat <thierry.parmentelat@inria.fr>
-# Copyright (C) 201
0
INRIA
+# Copyright (C) 201
5
INRIA
#
# remove slice_spec['omf-friendly']
#
#
# remove slice_spec['omf-friendly']
#
@@
-10,7
+11,7
@@
def remove_omf (plc_spec):
for slice in plc_spec['slices']:
if 'omf-friendly' in slice:
def remove_omf (plc_spec):
for slice in plc_spec['slices']:
if 'omf-friendly' in slice:
- print
'Turning off omf-friendly in slice',slice['slice_fields']['name']
+ print
('Turning off omf-friendly in slice',slice['slice_fields']['name'])
del slice['omf-friendly']
return plc_spec
del slice['omf-friendly']
return plc_spec