Ask Your Question

Revision history [back]

network = {'name': 'mynetwork', 'admin_state_up': True}

neutron.create_network({'network':network}) networks = neutron.list_networks(name='mynetwork') print networks network_id = networks['networks'][0]['id'] neutron.delete_network(network_id)

https://docs.openstack.org/python-neutronclient/latest/reference/index.html#

network = {'name': 'mynetwork', 'admin_state_up': True}

neutron.create_network({'network':network}) networks = neutron.list_networks(name='mynetwork') print networks network_id = networks['networks'][0]['id'] neutron.delete_network(network_id)

more https://docs.openstack.org/python-neutronclient/latest/reference/index.html#

network = {'name': 'mynetwork', 'admin_state_up': True}

True} neutron.create_network({'network':network}) networks = neutron.list_networks(name='mynetwork') print networks network_id = networks['networks'][0]['id'] neutron.delete_network(network_id)

more https://docs.openstack.org/python-neutronclient/latest/reference/index.html#