summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/topology.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-06-10 15:03:44 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-11 13:39:09 +0200
commit5089dde2cdbe22cabdbf74f325711ea5dcc22490 (patch)
treed62f53c826f530690ab740f2c7d6abf34c6869b3 /ipalib/plugins/topology.py
parent6a92b32bf2dfe49e3f219beb6042e9fa71e18dcc (diff)
downloadfreeipa-5089dde2cdbe22cabdbf74f325711ea5dcc22490.tar.gz
freeipa-5089dde2cdbe22cabdbf74f325711ea5dcc22490.tar.xz
freeipa-5089dde2cdbe22cabdbf74f325711ea5dcc22490.zip
disallow mod of topology segment nodes
Mod of segment end will be disallowed in topology plugin. Reasoning (by Ludwig): if we want to properly allow mods to change connectivity and endpoints, then we would need to check if the mod disconnects the topology, delete existing agreements, check if the new would be a duplicate and create new agmts. There could be some difficult scenarios, like having A <--> B <--> C <--> D, if you modify the segment B-C to A-D topology breaks and is then reconnected. part of: https://fedorahosted.org/freeipa/ticket/4302 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipalib/plugins/topology.py')
-rw-r--r--ipalib/plugins/topology.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py
index d055602a8..9574b78f6 100644
--- a/ipalib/plugins/topology.py
+++ b/ipalib/plugins/topology.py
@@ -81,6 +81,7 @@ class topologysegment(LDAPObject):
label=_('Left node'),
normalizer=lambda value: value.lower(),
doc=_('Left replication node - an IPA server'),
+ flags={'no_update'},
),
Str(
'iparepltoposegmentrightnode',
@@ -91,6 +92,7 @@ class topologysegment(LDAPObject):
label=_('Right node'),
normalizer=lambda value: value.lower(),
doc=_('Right replication node - an IPA server'),
+ flags={'no_update'},
),
StrEnum(
'iparepltoposegmentdirection',