diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-05-07 13:59:39 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-12 06:57:15 +0200 |
commit | a49cd696429ea6a45b0f82105751f3c9d34989b8 (patch) | |
tree | 5858e65248e166f44b43e49f4840041f1ce1bfed /python | |
parent | f86620edc72ebc5557c2fda83d0d5edbd09f3cb0 (diff) | |
download | samba-a49cd696429ea6a45b0f82105751f3c9d34989b8.tar.gz |
KCC: Add s.k.g.create_auto_edge_set() docstring, improve variable name
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 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/python/samba/kcc/graph.py b/python/samba/kcc/graph.py index 40852f7bebc..0803ed3b488 100644 --- a/python/samba/kcc/graph.py +++ b/python/samba/kcc/graph.py @@ -299,12 +299,20 @@ def create_edge(con_type, site_link, guid_to_vertex): return e -def create_auto_edge_set(graph, transport): +def create_auto_edge_set(graph, transport_guid): + """Set up an automatic MultiEdgeSet for the intersite graph + + From within MS-ADTS 6.2.2.3.4.4 + + :param graph: the intersite graph object + :param transport_guid: a transport type GUID + :return: a MultiEdgeSet + """ e_set = MultiEdgeSet() # use a NULL guid, not associated with a SiteLinkBridge object e_set.guid = misc.GUID() for site_link in graph.edges: - if site_link.con_type == transport: + if site_link.con_type == transport_guid: e_set.edges.append(site_link) return e_set |