X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Frspecs%2Faggregates%2Fvini%2Futils.py;h=c3118877757e535eb22f7b72dbf707b5dd93b1af;hb=73b163a7ea35209e0675a7c7cef367946928a96f;hp=c5fa4dc19b26ddadf752bf4ae8484e78c2d0c447;hpb=055366b0ce962e8fe8f332cded03b777f6b81191;p=sfa.git diff --git a/sfa/rspecs/aggregates/vini/utils.py b/sfa/rspecs/aggregates/vini/utils.py index c5fa4dc1..c3118877 100644 --- a/sfa/rspecs/aggregates/vini/utils.py +++ b/sfa/rspecs/aggregates/vini/utils.py @@ -481,7 +481,7 @@ class Topology: return link return None - def nodeTopoFromRspec(self, rspec): + def nodeTopoFromRSpec(self, rspec): if self.nodelinks: raise Error("virtual topology already present") @@ -490,7 +490,7 @@ class Topology: for node in self.getNodes(): nodedict[node.tag] = node - linkspecs = rspecdict['Rspec']['Request'][0]['NetSpec'][0]['LinkSpec'] + linkspecs = rspecdict['RSpec']['Request'][0]['NetSpec'][0]['LinkSpec'] for l in linkspecs: n1 = nodedict[l['endpoint'][0]] n2 = nodedict[l['endpoint'][1]] @@ -560,7 +560,7 @@ class Topology: """ def toxml(self, hrn = None): xml = """ - + """ @@ -616,7 +616,7 @@ class Topology: xml += """ -""" +""" # Remove all leading whitespace and newlines lines = xml.split("\n")