Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
myslicelib
Commits
f43e3193
Commit
f43e3193
authored
Jan 28, 2017
by
Loic Baron
Browse files
FIT IoT-Lab RSpec builder duration int to string
parent
a1b5daa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
myslicelib/util/sfabuilder/iotlab.py
View file @
f43e3193
...
...
@@ -30,7 +30,7 @@ class Iotlab(SfaBuilder):
raise
SfaError
(
'Leases must be specified to reserve FIT IoT-LAB resources'
)
for
l
in
record_dict
[
'leases'
]:
rspec
+=
'<lease slice_id="'
+
urn
+
'" start_time="'
+
str
(
l
[
'start_time'
])
+
'" duration="'
+
str
(
int
(
l
[
'duration'
]
/
60
))
+
'">'
rspec
+=
'<lease slice_id="'
+
urn
+
'" start_time="'
+
str
(
l
[
'start_time'
])
+
'" duration="'
+
str
(
int
(
int
(
l
[
'duration'
]
)
/
60
))
+
'">'
for
r
in
l
[
'resources'
]:
rspec
+=
'<node component_id="'
+
r
+
'"/>'
rspec
+=
'</lease>'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment