summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2015-05-08 14:53:16 +1200
committerAndrew Bartlett <abartlet@samba.org>2015-06-12 06:57:16 +0200
commit5a3cb71d0ba1391b033526d29c597c627708684c (patch)
tree0dd1fa553d82c2127c8eebe80ff28a8e9a55495b /python
parentea48c8f2b6bbc77973ad324f3d57c8ab6b637d88 (diff)
downloadsamba-5a3cb71d0ba1391b033526d29c597c627708684c.tar.gz
KCC: docstring for kcc.graph.Vertex
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.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/python/samba/kcc/graph.py b/python/samba/kcc/graph.py
index d001e934166..c866ccc3bcb 100644
--- a/python/samba/kcc/graph.py
+++ b/python/samba/kcc/graph.py
@@ -713,8 +713,12 @@ class VertexColor(object):
class Vertex(object):
- """Class encapsulation of a Site Vertex in the
- intersite topology replication algorithm
+ """intersite graph representation of a Site.
+
+ There is a separate vertex for each partition.
+
+ :param site: the site to make a vertex of.
+ :param part: the partition.
"""
def __init__(self, site, part):
self.site = site
@@ -732,8 +736,7 @@ class Vertex(object):
self.interval = 0
def color_vertex(self):
- """Color each vertex to indicate which kind of NC
- replica it contains
+ """Color to indicate which kind of NC replica the vertex contains
"""
# IF s contains one or more DCs with full replicas of the
# NC cr!nCName