Merge "Fix missing functions in StaticScheduler"

This commit is contained in:
Zuul 2022-08-04 10:41:02 +00:00 committed by Gerrit Code Review
commit e6f8165254
1 changed files with 12 additions and 3 deletions

View File

@ -220,7 +220,16 @@ class WeightScheduler(base_scheduler.BaseWeightScheduler,
self._register_callbacks()
class StaticScheduler(BgpDrAgentFilter):
class StaticScheduler(base_scheduler.BaseScheduler,
BgpDrAgentFilter):
def __init__(self):
super(StaticScheduler, self).__init__()
def schedule_all_unscheduled_bgp_speakers(self, context):
return True
def schedule_unscheduled_bgp_speakers(self, context, host):
return True
def select(self, plugin, context, resource_hostable_agents,
resource_hosted_agents, num_agents_needed):
return []