These options should not be touched by users yet.

https://fedorahosted.org/freeipa/ticket/5061
--
Petr Vobornik
From 8754e4f874f0f0f50cd8df1c486b384a8fd704fd Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Tue, 30 Jun 2015 10:38:12 +0200
Subject: [PATCH] topologysegment: hide direction and enable options

These options should not be touched by users yet.

https://fedorahosted.org/freeipa/ticket/5061
---
 install/ui/src/freeipa/topology.js | 11 ++---------
 ipalib/plugins/topology.py         |  3 ++-
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js
index c8a8acbe9b51dfc3a71e84ed36b812c5de74a39b..9ca31741f18e47e567c3e0a4248f5beaad77ccd1 100644
--- a/install/ui/src/freeipa/topology.js
+++ b/install/ui/src/freeipa/topology.js
@@ -138,7 +138,8 @@ return {
                             $type: 'radio',
                             name: 'nsds5replicaenabled',
                             options: ['on', 'off'],
-                            default_value: 'on'
+                            default_value: 'on',
+                            read_only: true
                         },
                         'nsds5replicatimeout',
                         'nsds5replicastripattrs',
@@ -168,14 +169,6 @@ return {
                 other_entity: 'server',
                 other_field: 'cn',
                 z_index: 1
-            },
-            {
-                $type: 'radio',
-                name: 'iparepltoposegmentdirection',
-                options: IPA.create_options([
-                    'both', 'left-right', 'right-left'
-                ]),
-                default_value: 'both'
             }
         ]
     }
diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py
index 49060d672b6522277014b0b9c1e0ecb92e091077..04e7b6e302193f5bcbb77be017fdfb31c3fa1034 100644
--- a/ipalib/plugins/topology.py
+++ b/ipalib/plugins/topology.py
@@ -103,7 +103,7 @@ class topologysegment(LDAPObject):
             default=u'both',
             doc=_('Direction of replication between left and right replication '
                   'node'),
-            flags={'no_update'},
+            flags={'no_option', 'no_update'},
         ),
         Str(
             'nsds5replicastripattrs?',
@@ -145,6 +145,7 @@ class topologysegment(LDAPObject):
             doc=_('Whether a replication agreement is active, meaning whether '
                   'replication is occurring per that agreement'),
             values=(u'on', u'off'),
+            flags={'no_option'},
         ),
     )
 
-- 
2.4.3

-- 
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