summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpp_interfaces_loopback.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-01-11 15:00:44 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2025-01-11 15:09:53 +0000
commit26936a2f23a6187efb26a3adcf0f11bec6a4ddba (patch)
tree81964e1c93ce916c468502702e7e6004e855c850 /src/conf_mode/vpp_interfaces_loopback.py
parent10de7ce46af1d38edfc449800ce730ad9bb4fbaa (diff)
downloadvyos-1x-26936a2f23a6187efb26a3adcf0f11bec6a4ddba.tar.gz
vyos-1x-26936a2f23a6187efb26a3adcf0f11bec6a4ddba.zip
Remove recursive_defaults from the get_config arg
Do not use 'recursive_defaults' as argument of the funciton get_config() It cause vyos-1x/src/tests/test_configd_inspect.py signature checks fail AssertionError: 2 != 1 : 'vpp_interfaces_bonding.py': 'get_config' incorrect signature
Diffstat (limited to 'src/conf_mode/vpp_interfaces_loopback.py')
-rw-r--r--src/conf_mode/vpp_interfaces_loopback.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/vpp_interfaces_loopback.py b/src/conf_mode/vpp_interfaces_loopback.py
index 67fd049f0..56a825ae6 100644
--- a/src/conf_mode/vpp_interfaces_loopback.py
+++ b/src/conf_mode/vpp_interfaces_loopback.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2023 VyOS Inc.
+# Copyright (C) 2023-2025 VyOS Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -34,12 +34,11 @@ from vyos.vpp.config_verify import (
from vyos.vpp.utils import cli_ifaces_lcp_kernel_list
-def get_config(config=None, recursive_defaults=True) -> dict:
+def get_config(config=None) -> dict:
"""Get Loopback interface configuration
Args:
config (vyos.config.Config, optional): The VyOS configuration dictionary
- recursive_defaults (bool, optional): Include recursive defaults
Returns:
dict: Loopback interface configuration
"""
@@ -60,7 +59,7 @@ def get_config(config=None, recursive_defaults=True) -> dict:
get_first_key=True,
no_tag_node_value_mangle=True,
with_defaults=True,
- with_recursive_defaults=recursive_defaults,
+ with_recursive_defaults=True,
)
# Get effective config as we need full dicitonary per interface delete