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:
2be1898
)
(no commit message)
author
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:23:11 +0000
(16:23 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:23:11 +0000
(16:23 +0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
1c204ce
..
16a4467
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-72,7
+72,9
@@
class Node:
with xml.node(id = self.idtag):
with xml.hostname:
xml << self.hostname
- self.get_primary_iface().toxml(xml)
+ iface = self.get_primary_iface()
+ if iface:
+ iface.toxml(xml)
if self.sliver:
self.sliver.toxml(xml)