summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-15 18:08:34 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-15 18:08:34 +0200
commit39fe36151eac3652ec9a2283974c19efdd728dc1 (patch)
treea848b2a15ad478321218505f794600ab0be3adbc
parentb8aca00fc5454f3afdb690ca7eb30e49fac48848 (diff)
downloadvyos-1x-39fe36151eac3652ec9a2283974c19efdd728dc1.tar.gz
vyos-1x-39fe36151eac3652ec9a2283974c19efdd728dc1.zip
vyos.configdict: keep is_member import as local as possible
-rw-r--r--python/vyos/configdict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 126d6195a..010eda45c 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -23,7 +23,6 @@ from enum import Enum
from copy import deepcopy
from vyos import ConfigError
-from vyos.validate import is_member
def retrieve_config(path_hash, base_path, config):
"""
@@ -203,6 +202,7 @@ def get_interface_dict(config, base, ifname=''):
Will return a dictionary with the necessary interface configuration
"""
from vyos.xml import defaults
+ from vyos.validate import is_member
if not ifname:
# determine tagNode instance