blob: 262a9caf23d07bdf4d863b47ebe075a106842b5c [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
6from typing import Any
7
8GET_IP_FROM_IF_PATH = \
Wei-Yu Chenb91af852022-03-15 22:24:49 +08009 'device_config.configuration_init.get_ip_from_if'
Wei-Yu Chen49950b92021-11-08 19:19:18 +080010
11LOAD_SERVICE_MCONFIG_PATH = \
Wei-Yu Chenb91af852022-03-15 22:24:49 +080012 'device_config.configuration_init.load_service_mconfig_as_json'
Wei-Yu Chen49950b92021-11-08 19:19:18 +080013
14
15def mock_get_ip_from_if(
16 _iface_name: str,
17 _preference: Any = None,
18) -> str:
19 return '192.168.60.142'
20
21
22def mock_load_service_mconfig_as_json(_service_name: str) -> Any:
23 return {}