blob: e8aebc667c69eb4191990a3dc1c8ce59e4e7766a [file] [log] [blame]
Wei-Yu Chenad55cb82022-02-15 20:07:01 +08001# SPDX-FileCopyrightText: 2020 The Magma Authors.
2# SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
3#
4# SPDX-License-Identifier: BSD-3-Clause
Wei-Yu Chen49950b92021-11-08 19:19:18 +08005
Wei-Yu Chen49950b92021-11-08 19:19:18 +08006from abc import ABC, abstractmethod
7from typing import Any
8
9from device_config.enodeb_configuration import EnodebConfiguration
10
11
12class EnodebConfigurationPostProcessor(ABC):
13 """
14 Overrides the desired configuration for the eNodeB, with subclass per
15 device/sw-version that requires non-standard configuration behavior.
16 """
17
18 @abstractmethod
19 def postprocess(self, mconfig: Any, service_cfg: Any, desired_cfg: EnodebConfiguration) -> None:
20 """
21 Implementation of function which overrides the desired configuration
22 for the eNodeB
23 """
24 pass