def delete(self, context, pool): with a10.A10DeleteContext(self, context, pool) as c: for member in pool['members']: m = self._get_member(context, member) self.a10_driver.member._delete(c, context, m) for hm in pool['health_monitors_status']: z = self._get_hm(context, hm['monitor_id']) self.a10_driver.hm._delete(c, context, z) if 'vip_id' in pool and pool['vip_id'] is not None: vip = self._get_vip(context, pool['vip_id']) self.a10_driver.vip._delete(c, context, vip) c.client.slb.service_group.delete(self._meta_name(pool))
def delete(self, context, pool): with a10.A10DeleteContext(self, context, pool) as c: pool_id = pool.get("id") for member in pool['members']: m = self.neutron.member_get(context, member) self.a10_driver.member._delete(c, context, m) for hm in pool.get('health_monitors_status', []): z = self.neutron.hm_get(context, hm['monitor_id']) self.a10_driver.hm.dissociate(c, context, z, pool_id) if 'vip_id' in pool and pool['vip_id'] is not None: vip = self.neutron.vip_get(context, pool['vip_id']) self.a10_driver.vip._delete(c, context, vip) try: c.client.slb.service_group.delete(self._meta_name(pool)) except (acos_errors.NotFound, acos_errors.NoSuchServiceGroup): pass
def delete(self, context, vip): with a10.A10DeleteContext(self, context, vip) as c: self._delete(c, context, vip) self.hooks.after_vip_delete(c, context, vip)
def delete(self, context, vip): with a10.A10DeleteContext(self, context, vip) as c: self._delete(c, context, vip)
def delete(self, context, member): with a10.A10DeleteContext(self, context, member) as c: self._delete(c, context, member)