X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=create-topo-attributes.py;h=5f42684e81c3f9a10141562f5aa8ffc9458c4dac;hb=ceb5f699fdccf1c56d571a64e16ae9ac606fc2bb;hp=2fe6ee3aecc881d419bfbd1c4f6dedd69a6bc33e;hpb=c69c556dca6a87551df2b954cc42f790af9d39aa;p=nodemanager-topo.git diff --git a/create-topo-attributes.py b/create-topo-attributes.py index 2fe6ee3..5f42684 100755 --- a/create-topo-attributes.py +++ b/create-topo-attributes.py @@ -167,7 +167,7 @@ class Slice: if cap == "CAP_NET_ADMIN": return else: - newcaps = "CAP_NET_ADMIN," + caps + newcaps = "CAP_NET_ADMIN," + tag.value self.update_tag('capabilities', newcaps, slicetags) else: self.add_tag('capabilities', 'CAP_NET_ADMIN', slicetags) @@ -378,9 +378,10 @@ for i in slices: print "Slice %s not using IIAS" % slice.name if topo_type == 'manual' and slice.get_tag('egre_key', slicetags): - topo_tag = slice.get_tag('topo_rspec', slicetags) - if topo_tag: - topo_tag.updated = True + for node in slice.get_nodes(nodes): + topo_tag = slice.get_tag('topo_rspec', slicetags, node) + if topo_tag: + topo_tag.updated = True # Update the tag values in the database for i in slicetags: