Fix missing functions in StaticScheduler

Seems the original approach was too simple, it is causing some
tracebacks due to missing functions.

Closes-Bug: 1980235
Change-Id: I15ef7ec34eeccf4dfcce94b3bca2c853c4c4a609
(cherry picked from commit 012f2358d2)
This commit is contained in:
Dr. Jens Harbott 2022-07-09 09:45:45 +02:00 committed by Michal Arbet
parent ed1ffb1949
commit 5371d7157a
1 changed files with 12 additions and 3 deletions

View File

@ -219,7 +219,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 []