KCC improve docstring for KCC.construct_intrasite_graph()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 6 May 2015 06:05:50 +0000 (18:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 12 Jun 2015 04:57:13 +0000 (06:57 +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>
python/samba/kcc/__init__.py

index 2d0283a138bb56c594fe51e99bb17bd4700da973..fd7b2be7eb13dfb23f3dddfad691af048058d860 100644 (file)
@@ -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.
         #