
This commit introduces dummy classes for all states that will be utilized in the new USM API. The implementation of these classes will be addressed in subsequent commits. Test Plan: 1. Perform an upgrade-strategy with use_usm=True - Check software orchestration will be called. - All states will execute and only move to the next state - Check the usm states tests pass. Story: 2010676 Task: 48153 Change-Id: I3d2c236656d5caee6a4a827d03146e6c160103aa Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
23 lines
598 B
Python
23 lines
598 B
Python
#
|
|
# Copyright (c) 2023 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from dcmanager.common import consts
|
|
from dcmanager.orchestrator.states.base import BaseState
|
|
|
|
|
|
class InstallLicenseState(BaseState):
|
|
"""Install license software orchestration state"""
|
|
|
|
def __init__(self, region_name):
|
|
super(InstallLicenseState, self).__init__(
|
|
next_state=consts.STRATEGY_STATE_SW_UPLOAD,
|
|
region_name=region_name,
|
|
)
|
|
|
|
def perform_state_action(self, strategy_step):
|
|
"""Install license region status"""
|
|
return self.next_state
|