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

https://fedorahosted.org/freeipa/ticket/4302
--
Petr Vobornik
From ca3aeaf723bb1f04bdf3e067ac9b0b59501f0686 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Mon, 8 Jun 2015 18:52:56 +0200
Subject: [PATCH] topology: hide topologysuffix-add del mod commands

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

https://fedorahosted.org/freeipa/ticket/4302
---
 ipalib/plugins/topology.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py
index 3e3f24402f28bae2b5c563919241a80137711d4d..99781fd104f86fbffa139a441d31cbccb8188076 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):
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to