diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-05-08 14:52:41 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-12 06:57:16 +0200 |
commit | 7663951112255eb5561df626331dbcb72ad706ef (patch) | |
tree | fafa04a4a513ce358d02020eca39f130fe64d260 /python | |
parent | 2331161a4a1034c45a4f98138d1c8ca7f09d17b2 (diff) | |
download | samba-7663951112255eb5561df626331dbcb72ad706ef.tar.gz |
KCC: docstring for kcc.graph.setup_graph()
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/kcc/graph.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/python/samba/kcc/graph.py b/python/samba/kcc/graph.py index 7e601a42de7..06b8e82511e 100644 --- a/python/samba/kcc/graph.py +++ b/python/samba/kcc/graph.py @@ -655,12 +655,19 @@ def add_out_edge(graph, output_edges, e): def setup_graph(part, site_table, transport_guid, sitelink_table, bridges_required): - """Set up a GRAPH, populated with a VERTEX for each site - object, a MULTIEDGE for each siteLink object, and a - MUTLIEDGESET for each siteLinkBridge object (or implied - siteLinkBridge). + """Set up an IntersiteGraph based on intersite topology - ::returns: a new graph + The graph will have a Vertex for each site, a MultiEdge for each + siteLink object, and a MultiEdgeSet for each siteLinkBridge object + (or implied siteLinkBridge). + + :param part: the partition we are dealing with + :param site_table: a mapping of guids to sites (KCC.site_table) + :param transport_guid: the GUID of the IP transport + :param sitelink_table: a mapping of dnstrs to sitelinks + :param bridges_required: boolean + + :return: a new IntersiteGraph """ guid_to_vertex = {} # Create graph |