summaryrefslogtreecommitdiff
path: root/ncserver
diff options
context:
space:
mode:
Diffstat (limited to 'ncserver')
-rw-r--r--ncserver/module/nms_ifupdownng.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ncserver/module/nms_ifupdownng.py b/ncserver/module/nms_ifupdownng.py
index ab658f6..1a54b88 100644
--- a/ncserver/module/nms_ifupdownng.py
+++ b/ncserver/module/nms_ifupdownng.py
@@ -167,17 +167,17 @@ def _remove_one(iface: str, key: str):
#############################
-def get_desc(iface: str):
+def get_desc(iface: str, _):
"""Retrieve the description for the specified interface."""
return _find_one(iface, 'netconf-description')
-def set_desc(iface: str, value: str):
+def set_desc(iface: str, _, value: str):
"""Set the description for the specified interface."""
_replace_one(iface, 'netconf-description', value)
-def unset_desc(iface: str):
+def unset_desc(iface: str, _):
"""Unset the description for the specified interface."""
_remove_one(iface, 'netconf-description')
@@ -248,7 +248,7 @@ def get_param(iface: str, parameter: str):
parameter, iface)
return None
- return _PARAMETERS[parameter][0](iface)
+ return _PARAMETERS[parameter][0](iface, parameter)
def set_param(iface: str, parameter: str, value):
@@ -266,7 +266,7 @@ def set_param(iface: str, parameter: str, value):
if iface not in _CONFIG.keys():
_CONFIG[iface] = list()
- _PARAMETERS[parameter][1](iface, value)
+ _PARAMETERS[parameter][1](iface, paremeter, value)
def unset_param(iface: str, parameter: str):
@@ -287,7 +287,7 @@ def unset_param(iface: str, parameter: str):
)
return
- _PARAMETERS[parameter][2](iface)
+ _PARAMETERS[parameter][2](iface, parameter)
def list_addresses(iface: str) -> list: