topology: hide topologysuffix-add del mod commands

Suffices are created on installation/upgrade. Users should not
modify them.

https://fedorahosted.org/freeipa/ticket/4302

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Petr Vobornik 2015-06-08 18:52:56 +02:00
parent 4232c39f67
commit 2661a860e0

View File

@ -355,6 +355,8 @@ class topologysuffix_find(LDAPSearch):
class topologysuffix_del(LDAPDelete): class topologysuffix_del(LDAPDelete):
__doc__ = _('Delete a topology suffix.') __doc__ = _('Delete a topology suffix.')
NO_CLI = True
msg_summary = _('Deleted topology suffix "%(value)s"') msg_summary = _('Deleted topology suffix "%(value)s"')
def pre_callback(self, ldap, dn, *keys, **options): def pre_callback(self, ldap, dn, *keys, **options):
@ -367,6 +369,8 @@ class topologysuffix_del(LDAPDelete):
class topologysuffix_add(LDAPCreate): class topologysuffix_add(LDAPCreate):
__doc__ = _('Add a new topology suffix to be managed.') __doc__ = _('Add a new topology suffix to be managed.')
NO_CLI = True
msg_summary = _('Added topology suffix "%(value)s"') msg_summary = _('Added topology suffix "%(value)s"')
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
@ -379,6 +383,8 @@ class topologysuffix_add(LDAPCreate):
class topologysuffix_mod(LDAPUpdate): class topologysuffix_mod(LDAPUpdate):
__doc__ = _('Modify a topology suffix.') __doc__ = _('Modify a topology suffix.')
NO_CLI = True
msg_summary = _('Modified topology suffix "%(value)s"') msg_summary = _('Modified topology suffix "%(value)s"')
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):