From 2f6c70a450163e1fc92de34eefc96581041b9807 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Tue, 28 Apr 2015 11:14:04 +1200 Subject: KCC: improve docstring for KCC.add_transports() Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- source4/scripting/bin/samba_kcc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source4/scripting') diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index 843e49a572d..d483d01c163 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -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: -- cgit v1.2.1