X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=topo.py;h=e73eb8a414e137e909f98721d05670029fff2095;hb=f36c89114e23caec5cc8a6342425968278a8a6fb;hp=7bf8bf73e5424621c521ebee27852e34ba62cec6;hpb=e0ef68a4f4784d3bcb13a688650e79aec099980c;p=nodemanager-topo.git diff --git a/topo.py b/topo.py index 7bf8bf7..e73eb8a 100755 --- a/topo.py +++ b/topo.py @@ -338,6 +338,7 @@ def update_hosts(slicename, hosts): def start(options, config): + run ("echo 1 > /proc/sys/net/ipv4/ip_forward") pass @@ -355,7 +356,7 @@ def GetSlivers(data): for sliver in data['slivers']: attrs = {} for attribute in sliver['attributes']: - attrs[attribute['name']] = attribute['value'] + attrs[attribute['tagname']] = attribute['value'] if 'netns' in attrs: netns = int(attrs['netns']) writeConf(sliver['name'], netns)