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 | |
| 6 | from typing import Any |
| 7 | |
| 8 | GET_IP_FROM_IF_PATH = \ |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame] | 9 | 'device_config.configuration_init.get_ip_from_if' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 10 | |
| 11 | LOAD_SERVICE_MCONFIG_PATH = \ |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame] | 12 | 'device_config.configuration_init.load_service_mconfig_as_json' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 13 | |
| 14 | |
| 15 | def mock_get_ip_from_if( |
| 16 | _iface_name: str, |
| 17 | _preference: Any = None, |
| 18 | ) -> str: |
| 19 | return '192.168.60.142' |
| 20 | |
| 21 | |
| 22 | def mock_load_service_mconfig_as_json(_service_name: str) -> Any: |
| 23 | return {} |