From 2661a860e0049c75088fffe2765d67b051c31c9b Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Jun 10 2015 12:16:03 +0000 Subject: 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 --- diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py index 3e3f244..99781fd 100644 --- a/ipalib/plugins/topology.py +++ b/ipalib/plugins/topology.py @@ -355,6 +355,8 @@ class topologysuffix_find(LDAPSearch): class topologysuffix_del(LDAPDelete): __doc__ = _('Delete a topology suffix.') + NO_CLI = True + msg_summary = _('Deleted topology suffix "%(value)s"') def pre_callback(self, ldap, dn, *keys, **options): @@ -367,6 +369,8 @@ class topologysuffix_del(LDAPDelete): class topologysuffix_add(LDAPCreate): __doc__ = _('Add a new topology suffix to be managed.') + NO_CLI = True + msg_summary = _('Added topology suffix "%(value)s"') def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): @@ -379,6 +383,8 @@ class topologysuffix_add(LDAPCreate): class topologysuffix_mod(LDAPUpdate): __doc__ = _('Modify a topology suffix.') + NO_CLI = True + msg_summary = _('Modified topology suffix "%(value)s"') def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):