1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

KCC: Add graph.InternalEdge.__lt__ docstring

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>
This commit is contained in:
Douglas Bagnall 2015-05-07 14:07:27 +12:00 committed by Andrew Bartlett
parent b59666c36d
commit 4a9b9b23f0

View File

@ -751,6 +751,18 @@ class InternalEdge(object):
# TODO compare options and interval
def __lt__(self, other):
"""Here "less than" means "better".
From within MS-ADTS 6.2.2.3.4.4:
SORT internalEdges by (descending RedRed,
ascending ReplInfo.Cost,
descending available time in ReplInfo.Schedule,
ascending V1ID,
ascending V2ID,
ascending Type)
"""
if self.red_red != other.red_red:
return self.red_red