git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e0ebd0
)
No such variable self.name. Changed it to network['hostname'].
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Thu, 22 Feb 2007 18:11:44 +0000
(18:11 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Thu, 22 Feb 2007 18:11:44 +0000
(18:11 +0000)
net.py
patch
|
blob
|
history
diff --git
a/net.py
b/net.py
index
1a6ec35
..
564aa24
100644
(file)
--- a/
net.py
+++ b/
net.py
@@
-14,7
+14,6
@@
def GetSlivers(data):
# XXX Exempt Internet2 destinations from node bwlimits
# bwlimit.exempt_init('Internet2', internet2_ips)
# XXX Exempt Internet2 destinations from node bwlimits
# bwlimit.exempt_init('Internet2', internet2_ips)
-
for network in data['networks']:
# Get interface name preferably from MAC address, falling
# back on IP address.
for network in data['networks']:
# Get interface name preferably from MAC address, falling
# back on IP address.
@@
-23,7
+22,7
@@
def GetSlivers(data):
elif ips.has_key(network['ip']):
dev = ips[network['ip']]
else:
elif ips.has_key(network['ip']):
dev = ips[network['ip']]
else:
- logger.log('%s: no such interface with address %s/%s' % (
self.name
, network['ip'], network['mac']))
+ logger.log('%s: no such interface with address %s/%s' % (
network['hostname']
, network['ip'], network['mac']))
continue
# Get current node cap
continue
# Get current node cap