git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a67a66
)
Tweak name in network element
author
Andy Bavier
<acb@cs.princeton.edu>
Tue, 16 Feb 2010 19:01:41 +0000
(19:01 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Tue, 16 Feb 2010 19:01:41 +0000
(19:01 +0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
8de6895
..
1210b72
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-492,11
+492,10
@@
class Network:
def toxml(self):
xml = XMLBuilder(format = True, tab_step = " ")
with xml.RSpec(type=self.type):
- name = "Public_" + self.type
if self.slice:
- element = xml.network(name=
name
, slice=self.slice.hrn)
+ element = xml.network(name=
self.api.hrn
, slice=self.slice.hrn)
else:
- element = xml.network(name=
name
)
+ element = xml.network(name=
self.api.hrn
)
with element:
if self.slice: