# Create a NCReplica that matches what the local replica
# should say. We'll use this below in our r_list
- l_of_x = NCReplica(dc_local.dsa_dnstr, dc_local.dsa_guid,
- nc_x.nc_dnstr)
+ l_of_x = NCReplica(dc_local, nc_x.nc_dnstr)
l_of_x.identify_by_basedn(self.samdb)
class) and it identifies unique attributes of the DSA's replica for a NC.
"""
- def __init__(self, dsa_dnstr, dsa_guid, nc_dnstr):
+ def __init__(self, dsa, nc_dnstr):
"""Instantiate a Naming Context Replica
:param dsa_guid: GUID of DSA where replica appears
:param nc_dnstr: NC dn string
"""
- self.rep_dsa_dnstr = dsa_dnstr
- self.rep_dsa_guid = dsa_guid
+ self.rep_dsa_dnstr = dsa.dsa_dnstr
+ self.rep_dsa_guid = dsa.dsa_guid
self.rep_default = False # replica for DSA's default domain
self.rep_partial = False
self.rep_ro = False
dnstr = str(dsdn.dn)
if not dnstr in tmp_table:
- rep = NCReplica(self.dsa_dnstr, self.dsa_guid, dnstr)
+ rep = NCReplica(self, dnstr)
tmp_table[dnstr] = rep
else:
rep = tmp_table[dnstr]