def delete_pool_health_monitor(self, context, health_monitor, pool_id): super(EdgeLoadbalancerDriver, self).delete_pool_health_monitor( context, health_monitor, pool_id) pool_mapping = db.get_nsxv_edge_pool_mapping(context, pool_id) edge_id = pool_mapping['edge_id'] mon_mapping = db.get_nsxv_edge_monitor_mapping( context, health_monitor['id'], edge_id) self._nsxv_driver.delete_pool_health_monitor( context, health_monitor, pool_id, pool_mapping, mon_mapping)
def update_pool_health_monitor(self, context, old_health_monitor, health_monitor, pool_id): super(EdgeLoadbalancerDriver, self).update_pool_health_monitor( context, old_health_monitor, health_monitor, pool_id) pool_mapping = db.get_nsxv_edge_pool_mapping(context, pool_id) mon_mapping = db.get_nsxv_edge_monitor_mapping( context, health_monitor['id'], pool_mapping['edge_id']) self._nsxv_driver.update_pool_health_monitor( context, old_health_monitor, health_monitor, pool_id, mon_mapping)