in gstack/controllers/networks.py [0:0]
def _delete_network(authorization, projectid, network):
args = {'command': 'listSecurityGroups'}
network_response = controllers.get_item_with_name(
authorization, network, args, 'securitygroup')
if not network_response:
return None
securitygroup_id = network_response['id']
args = {
'id': securitygroup_id
}
return requester.make_request(
'deleteSecurityGroup',
args,
authorization.client_id,
authorization.client_secret
)