From 110edd19082ba995b2006e117bd73307bf4dad11 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 18 Nov 2020 14:38:42 -0600 Subject: ifupdown-ng NMSA: Allow creating new ifaces with set_param --- ncserver/module/nms_ifupdownng.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ncserver/module/nms_ifupdownng.py') diff --git a/ncserver/module/nms_ifupdownng.py b/ncserver/module/nms_ifupdownng.py index 9d1d19b..55405d4 100644 --- a/ncserver/module/nms_ifupdownng.py +++ b/ncserver/module/nms_ifupdownng.py @@ -173,12 +173,9 @@ def set_param(iface: str, parameter: str, value): """Set the parameter for the specified interface.""" _load_config() + # Allow creation of new interfaces from NETCONF. if iface not in _CONFIG.keys(): - LOGGER.warning( - _("attempted to set parameter %s for non-existent interface %s"), - parameter, iface - ) - return + _CONFIG[iface] = list() # implement this. raise NotImplementedError -- cgit v1.2.3-60-g2f50