diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-26 15:53:57 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-26 15:53:57 +0200 |
commit | f52f7bb85886cab81a64739b35cdaf179048e28f (patch) | |
tree | d9420ce180288682c50353f5081d349dd81da17f /python/vyos/configdict.py | |
parent | 8aa548c975bbbd306d9a1f8441960c3834388fdf (diff) | |
download | vyos-1x-f52f7bb85886cab81a64739b35cdaf179048e28f.tar.gz vyos-1x-f52f7bb85886cab81a64739b35cdaf179048e28f.zip |
configdict: T2653: prevent recursive imports
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r-- | python/vyos/configdict.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index ce086872e..074dc0131 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -22,7 +22,6 @@ from enum import Enum from copy import deepcopy from vyos import ConfigError -from vyos.ifconfig import Interface from vyos.validate import is_member from vyos.util import ifname_from_config @@ -214,6 +213,8 @@ def disable_state(conf, check=[3,5,7]): def intf_to_dict(conf, default): + from vyos.ifconfig import Interface + """ Common used function which will extract VLAN related information from config and represent the result as Python dictionary. |