KCC: improve docstring for KCC.add_transports()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 27 Apr 2015 23:14:04 +0000 (11:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 30 May 2015 19:05:25 +0000 (21:05 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_kcc

index 843e49a572d2eb38f3cd7d2ae81f140182e53cd5..d483d01c163f1e592be18bc72d27da1bcead122d 100755 (executable)
@@ -1624,7 +1624,21 @@ class KCC(object):
             self.kept_connections.add(cn)
 
     def add_transports(self, vertex, local_vertex, graph, detect_failed):
+        """Build a Vertex's transport lists
 
+        Each vertex has accept_red_red and accept_black lists that
+        list what transports they accept under various conditions. The
+        only transport that is ever accepted is IP, and a dummy extra
+        transport called "EDGE_TYPE_ALL".
+
+        Part of MS-ADTS 6.2.2.3.4.3 -- ColorVertices
+
+        :param vertex: the remote vertex we are thinking about
+        :param local_vertex: the vertex relating to the local site.
+        :param graph: the intersite graph
+        :param detect_failed: whether to detect failed links
+        :return: True if some bridgeheads were not found
+        """
         # The docs ([MS-ADTS] 6.2.2.3.4.3) say to use local_vertex
         # here, but using vertex seems to make more sense. That is,
         # the docs want this: