Commit 942d2c17 by Bach Dániel

add change_ip task

parent c1f5a2bc
...@@ -108,6 +108,13 @@ def send_expiration(vm, url): ...@@ -108,6 +108,13 @@ def send_expiration(vm, url):
command='send_expiration', args={'url': url}) command='send_expiration', args={'url': url})
@celery.task(name='agent.change_ip')
def change_ip(vm, interfaces, dns):
logger.debug('change_ip(%s, %s, %s)', vm, interfaces, dns)
return reactor.connections[vm].send_command(
command='change_ip', args={'interfaces': interfaces, 'dns': dns})
@celery.task(name='vm.tasks.local_agent_tasks.renew') @celery.task(name='vm.tasks.local_agent_tasks.renew')
def renew(vm): def renew(vm):
print vm print vm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment