Skip to content

Instantly share code, notes, and snippets.

@jimrollenhagen
Created September 5, 2014 16:16
Show Gist options
  • Save jimrollenhagen/9f80ba59d2a031a130f8 to your computer and use it in GitHub Desktop.
Save jimrollenhagen/9f80ba59d2a031a130f8 to your computer and use it in GitHub Desktop.
def deploy():
deploy_to_agent()
power_off()
neutron_client = _get_neutron_client(task.context)
neutron_client.remove_provisioning_network(node)
neutron_client.configure_instance_networks(node)
power_on()
[...]
def tear_down()
power_off()
neutron_client = _get_neutron_client(task.context)
neutron_client.deconfigure_instance_networks(task.node)
neutron_client.add_provisioning_network(task.node)
power_on()
decommission()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment