def updatemaster(self, node, add=True): if self.debug: self.logger.write("State", "Updating Master at %s" % self.master) nscoord = NameserverCoord(self.master) nodes = {} for nodetype,group in self.groups.iteritems(): nodes[nodetype] = set() for address,port in self.groups[nodetype].get_addresses(): nodes[nodetype].add(address + ':' + str(port)) nodes[self.type].add(self.addr + ':' + str(self.port)) nscoord.updatesubdomain(str(self.mydomain), nodes)
def updatemaster(self, node, add=True): if self.debug: self.logger.write("State", "Updating Master at %s" % self.master) nscoord = NameserverCoord(self.master) nodes = {} for nodetype, group in self.groups.iteritems(): nodes[nodetype] = set() for address, port in self.groups[nodetype].get_addresses(): nodes[nodetype].add(address + ':' + str(port)) nodes[self.type].add(self.addr + ':' + str(self.port)) nscoord.updatesubdomain(str(self.mydomain), nodes)
def main(): openreplicacoord = NameserverCoord('openreplica.org') print(openreplicacoord.__str__())
def main(): openreplicacoord = NameserverCoord('openreplica.org') print openreplicacoord.__str__()