Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | # 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 Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 5 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 6 | from abc import ABC, abstractmethod |
| 7 | from typing import Any |
| 8 | |
| 9 | from device_config.enodeb_configuration import EnodebConfiguration |
| 10 | |
| 11 | |
| 12 | class 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 |
Wei-Yu Chen | 8d06416 | 2022-05-27 21:06:55 +0800 | [diff] [blame] | 19 | def postprocess(self, desired_cfg: EnodebConfiguration) -> None: |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 20 | """ |
| 21 | Implementation of function which overrides the desired configuration |
| 22 | for the eNodeB |
| 23 | """ |
| 24 | pass |