'Deletes a network.'

@validate_network_plugin
@args('--fixed_range', metavar='<x.x.x.x/yy>', help='Network    to    delete')
@args('--uuid', metavar='<uuid>', help='UUID    of    network    to    delete')
def delete(self, fixed_range=None, uuid=None):

    if ((fixed_range is None) and (uuid is None)):
        raise Exception(_('Please    specify    either    fixed_range    or    uuid'))
    net_manager = importutils.import_object(CONF.network_manager)
    if ('NeutronManager' in CONF.network_manager):
        if (uuid is None):
            raise Exception(_('UUID    is    required    to    delete    Neutron    Networks'))
        if fixed_range:
            raise Exception(_('Deleting    by    fixed_range    is    not    supported    with    the    NeutronManager'))
    net_manager.delete_network(context.get_admin_context(), fixed_range, uuid)
