summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-06-11 15:38:32 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-15 16:06:48 +0200
commitd58bdf29a514a7868c63b767f4954891b10a574d (patch)
tree98a7c576f8091213d6608eab8d3844878c61d04a
parent45dccedd12e6d26e146ad9c30c2c304e6b2eded1 (diff)
downloadfreeipa-d58bdf29a514a7868c63b767f4954891b10a574d.tar.gz
freeipa-d58bdf29a514a7868c63b767f4954891b10a574d.tar.xz
freeipa-d58bdf29a514a7868c63b767f4954891b10a574d.zip
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 <mbabinsk@redhat.com>
-rw-r--r--API.txt8
-rw-r--r--VERSION4
-rw-r--r--ipalib/plugins/server.py7
3 files changed, 17 insertions, 2 deletions
diff --git a/API.txt b/API.txt
index 853d26a59..ff53e9457 100644
--- a/API.txt
+++ b/API.txt
@@ -3799,6 +3799,14 @@ option: Str('version?', exclude='webui')
output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None))
output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), 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', <type 'dict'>, None)
+output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), 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 741d50f2d..2a8351221 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 d22f1ea36..7fc441973 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"')