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:
parent
a019b78c98
commit
97853cbcb5
|
@ -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 []
|
||||
|
|
Loading…
Reference in New Issue