Exemplo n.º 1
0
 def reconfig_sg(self, sg_name):
     """
     Reconfigure an SGs servers
     """
     self._begin_op()
     sg = self._find_sg_byname(sg_name)
     reconfig_sg(self.db_session, sg.id_, sg.name)
     self._finish_op()
Exemplo n.º 2
0
 def reconfig_replica_sg(self):
     """
     Reconfigure replica SG.  
     
     This forces an rsync of DNSSEC key material and Zone data to DR
     replica servers.
     """
     self._begin_op()
     db_session = self.db_session
     replica_sg = get_mastersm_replica_sg(db_session)
     if not replica_sg:
         # If no replica_sg, return with no error
         return
     reconfig_sg(db_session, replica_sg.id_, replica_sg.name)
     self._finish_op()