6b153ba topology: restrict direction changes

Authored and Committed by pvoborni 8 years ago
    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>
    
        
file modified
+3 -4
file modified
+2 -2
file modified
+2 -1