From 21b792b7ba253553ab19ed0839b9756b2a6d0acd Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 6 May 2015 18:05:50 +1200 Subject: [PATCH] KCC improve docstring for KCC.construct_intrasite_graph() Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- python/samba/kcc/__init__.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/python/samba/kcc/__init__.py b/python/samba/kcc/__init__.py index 2d0283a138b..fd7b2be7eb1 100644 --- a/python/samba/kcc/__init__.py +++ b/python/samba/kcc/__init__.py @@ -2001,7 +2001,21 @@ class KCC(object): def construct_intrasite_graph(self, site_local, dc_local, nc_x, gc_only, detect_stale): - # [MS-ADTS] 6.2.2.2 + """Create an intrasite graph using given parameters + + This might be called a number of times per site with different + parameters. + + Based on [MS-ADTS] 6.2.2.2 + + :param site_local: site for which we are working + :param dc_local: local DC that potentially needs a replica + :param nc_x: naming context (x) that we are testing if it + "should be present" on the local DC + :param gc_only: Boolean - only consider global catalog servers + :param detect_stale: Boolean - check whether links seems down + :return: None + """ # We're using the MS notation names here to allow # correlation back to the published algorithm. # -- 2.11.4.GIT