From d58bdf29a514a7868c63b767f4954891b10a574d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Jun 15 2015 14:06:48 +0000 Subject: server: add "del" command this command is internal and is supposed to be used by ipa-replica-managed to delete replica. Reviewed-By: Martin Babinsky --- diff --git a/API.txt b/API.txt index 853d26a..ff53e94 100644 --- a/API.txt +++ b/API.txt @@ -3799,6 +3799,14 @@ option: Str('version?', exclude='webui') output: Entry('result', , Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (, ), None) output: PrimaryKey('value', None, None) +command: server_del +args: 1,2,3 +arg: Str('cn', attribute=True, cli_name='name', multivalue=True, primary_key=True, query=True, required=True) +option: Flag('continue', autofill=True, cli_name='continue', default=False) +option: Str('version?', exclude='webui') +output: Output('result', , None) +output: Output('summary', (, ), None) +output: ListOfPrimaryKeys('value', None, None) command: server_find args: 1,10,4 arg: Str('criteria?', noextrawhitespace=False) diff --git a/VERSION b/VERSION index 741d50f..2a83512 100644 --- a/VERSION +++ b/VERSION @@ -90,5 +90,5 @@ IPA_DATA_VERSION=20100614120000 # # ######################################################## IPA_API_VERSION_MAJOR=2 -IPA_API_VERSION_MINOR=132 -# Last change: dkupka: User life cycle permissions naming and split +IPA_API_VERSION_MINOR=133 +# Last change: pvoborni - add server-del internal command diff --git a/ipalib/plugins/server.py b/ipalib/plugins/server.py index d22f1ea..7fc4419 100644 --- a/ipalib/plugins/server.py +++ b/ipalib/plugins/server.py @@ -87,3 +87,10 @@ class server_find(LDAPSearch): @register() class server_show(LDAPRetrieve): __doc__ = _('Show IPA server.') + + +@register() +class server_del(LDAPDelete): + __doc__ = _('Delete IPA server.') + NO_CLI = True + msg_summary = _('Deleted IPA server "%(value)s"')