logger.log('%s: setting cpu share to %d' % (self.name, cpu_share))
self.set_sched_config(cpu_share, 0)
+ if self.rspec['ip_addresses'] != '0.0.0.0':
+ logger.log('%s: setting IP address(es) to %s' % (self.name, self.rspec['ip_addresses']))
+ self.set_ipaddresses_config(self.rspec['ip_addresses'])
+
if False: # Does not work properly yet.
if self.have_limits_changed():
logger.log('%s: limits have changed --- restarting' % self.name)
responsible for handling delegation accounts.
"""
-# $Id: sm.py,v 1.26 2007/07/23 19:28:07 faiyaza Exp $
+# $Id: sm.py,v 1.27 2007/07/24 15:59:04 dhozac Exp $
try: from bwlimit import bwmin, bwmax
except ImportError: bwmin, bwmax = 8, 1000*1000*1000
'disk_max': 5000000, # bytes
# capabilities
'capabilities': '',
+ # IP-addresses'
+ 'ip_addresses': '',
# NOTE: this table is further populated with resource names and
# default amounts via the start() function below. This probably