blob: 59fb0c73c21b60044381e26cca282b8ab87aa4ae [file] [log] [blame]
Wei-Yu Chen49950b92021-11-08 19:19:18 +08001"""
2Copyright 2020 The Magma Authors.
3
4This source code is licensed under the BSD-style license found in the
5LICENSE file in the root directory of this source tree.
6
7Unless required by applicable law or agreed to in writing, software
8distributed under the License is distributed on an "AS IS" BASIS,
9WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10See the License for the specific language governing permissions and
11limitations under the License.
12"""
13
14from typing import Any
15
16GET_IP_FROM_IF_PATH = \
17 'magma.enodebd.device_config.configuration_init.get_ip_from_if'
18
19LOAD_SERVICE_MCONFIG_PATH = \
20 'magma.enodebd.device_config.configuration_init.load_service_mconfig_as_json'
21
22
23def mock_get_ip_from_if(
24 _iface_name: str,
25 _preference: Any = None,
26) -> str:
27 return '192.168.60.142'
28
29
30def mock_load_service_mconfig_as_json(_service_name: str) -> Any:
31 return {}