summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-06-30 10:38:12 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-03 08:47:23 +0200
commit2b8e1caa7bfda5e540a94fe26fbcdbfd0ea68928 (patch)
tree98af18b687d018d214dbd9b11bca047c2b4cdaff
parentfa4954c35d2742606bf0b865d5a48899aa64de99 (diff)
downloadfreeipa-2b8e1caa7bfda5e540a94fe26fbcdbfd0ea68928.tar.gz
freeipa-2b8e1caa7bfda5e540a94fe26fbcdbfd0ea68928.tar.xz
freeipa-2b8e1caa7bfda5e540a94fe26fbcdbfd0ea68928.zip
topologysegment: hide direction and enable options
These options should not be touched by users yet. https://fedorahosted.org/freeipa/ticket/5061 Reviewed-By: David Kupka <dkupka@redhat.com>
-rw-r--r--install/ui/src/freeipa/topology.js11
-rw-r--r--ipalib/plugins/topology.py3
2 files changed, 4 insertions, 10 deletions
diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js
index c8a8acbe9..9ca31741f 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 49060d672..04e7b6e30 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'},
),
)