git://git.onelab.eu
/
nodemanager-topo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for MyPLC 4.3
[nodemanager-topo.git]
/
topo.py
diff --git
a/topo.py
b/topo.py
index
7bf8bf7
..
e73eb8a
100755
(executable)
--- a/
topo.py
+++ b/
topo.py
@@
-338,6
+338,7
@@
def update_hosts(slicename, hosts):
def start(options, config):
def start(options, config):
+ run ("echo 1 > /proc/sys/net/ipv4/ip_forward")
pass
pass
@@
-355,7
+356,7
@@
def GetSlivers(data):
for sliver in data['slivers']:
attrs = {}
for attribute in sliver['attributes']:
for sliver in data['slivers']:
attrs = {}
for attribute in sliver['attributes']:
- attrs[attribute['name']] = attribute['value']
+ attrs[attribute['
tag
name']] = attribute['value']
if 'netns' in attrs:
netns = int(attrs['netns'])
writeConf(sliver['name'], netns)
if 'netns' in attrs:
netns = int(attrs['netns'])
writeConf(sliver['name'], netns)