예제 #1
0
 def _configure_vrrp_subflow(self, sf_name):
     configure_vrrp_subflow = linear_flow.Flow(sf_name)
     # VRID Configuration
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureVRID(
         name=sf_name + '-' + a10constants.CONFIGURE_VRID_FOR_MASTER_VTHUNDER,
         requires=(a10constants.VTHUNDER)))
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureVRID(
         name=sf_name + '-' + a10constants.CONFIGURE_VRID_FOR_BACKUP_VTHUNDER,
         rebind={a10constants.VTHUNDER: a10constants.BACKUP_VTHUNDER}))
     # VRRP synch
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureVRRPSync(
         name=sf_name + '-' + a10constants.CONFIGURE_VRRP_SYNC,
         requires=(a10constants.VTHUNDER, a10constants.BACKUP_VTHUNDER)))
     # Wait for VRRP synch
     configure_vrrp_subflow.add(vthunder_tasks.VThunderComputeConnectivityWait(
         name=sf_name + '-' + a10constants.WAIT_FOR_MASTER_SYNC,
         requires=(a10constants.VTHUNDER, constants.AMPHORA)))
     configure_vrrp_subflow.add(vthunder_tasks.VThunderComputeConnectivityWait(
         name=sf_name + '-' + a10constants.WAIT_FOR_BACKUP_SYNC,
         rebind={a10constants.VTHUNDER: a10constants.BACKUP_VTHUNDER},
         requires=(constants.AMPHORA)))
     # Configure aVCS
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureaVCSMaster(
         name=sf_name + '-' + a10constants.CONFIGURE_AVCS_SYNC_FOR_MASTER,
         requires=(a10constants.VTHUNDER)))
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureaVCSBackup(
         name=sf_name + '-' + a10constants.CONFIGURE_AVCS_SYNC_FOR_BACKUP,
         rebind={a10constants.VTHUNDER: a10constants.BACKUP_VTHUNDER}))
     return configure_vrrp_subflow
예제 #2
0
 def _configure_vrrp_subflow(self, sf_name):
     configure_vrrp_subflow = linear_flow.Flow(sf_name)
     # Configure aVCS
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureaVCSMaster(
         name=sf_name + '-' + a10constants.CONFIGURE_AVCS_SYNC_FOR_MASTER,
         requires=(a10constants.VTHUNDER)))
     configure_vrrp_subflow.add(vthunder_tasks.ConfigureaVCSBackup(
         name=sf_name + '-' + a10constants.CONFIGURE_AVCS_SYNC_FOR_BACKUP,
         rebind={a10constants.VTHUNDER: a10constants.BACKUP_VTHUNDER}))
     # Wait for aVCS sync
     configure_vrrp_subflow.add(vthunder_tasks.VCSSyncWait(
         name=sf_name + '-' + a10constants.VCS_SYNC_WAIT,
         requires=a10constants.VTHUNDER))
     return configure_vrrp_subflow