diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2015-06-10 14:44:09 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-06-15 09:38:46 +0200 |
commit | 6b153ba876edf1ed9249ed29420a4af2b2e1830d (patch) | |
tree | f8b2c8a1d3e6c7dc160f002172bcb20815791bbd /ipalib/plugins | |
parent | bae80b00a668b678c608d04c1b5d96871a85ece9 (diff) | |
download | freeipa-6b153ba876edf1ed9249ed29420a4af2b2e1830d.tar.gz freeipa-6b153ba876edf1ed9249ed29420a4af2b2e1830d.tar.xz freeipa-6b153ba876edf1ed9249ed29420a4af2b2e1830d.zip |
topology: restrict direction changes
topology plugin doesn't properly handle:
- creation of segment with direction 'none' and then upgrade to other
direction
- downgrade of direction
These situations are now forbidden in API.
part of: https://fedorahosted.org/freeipa/ticket/4302
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/topology.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py index 9574b78f6..be2ac0bd2 100644 --- a/ipalib/plugins/topology.py +++ b/ipalib/plugins/topology.py @@ -98,10 +98,11 @@ class topologysegment(LDAPObject): 'iparepltoposegmentdirection', cli_name='direction', label=_('Connectivity'), - values=(u'both', u'left-right', u'right-left', u'none'), + values=(u'both', u'left-right', u'right-left'), default=u'both', doc=_('Direction of replication between left and right replication ' 'node'), + flags={'no_update'}, ), Str( 'nsds5replicastripattrs?', |