summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-tunnel.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2021-05-20 23:01:30 +0300
committerGitHub <noreply@github.com>2021-05-20 22:01:30 +0200
commit8fdebbe140bdd92d3c3086ac90a3f869f740b74d (patch)
treec070d5eba75806d5643a4204b305eb31ffffb589 /src/conf_mode/interfaces-tunnel.py
parent9197a409876f9943032ac19834b5f04bdac6e00a (diff)
downloadvyos-1x-8fdebbe140bdd92d3c3086ac90a3f869f740b74d.tar.gz
vyos-1x-8fdebbe140bdd92d3c3086ac90a3f869f740b74d.zip
vyos.util: T3532: Replace func get_interface_config
Replace function get_interface_config to function get_interface_config, as we have in 1.4 branch. It need after this cherry-picked commit edcdea8
Diffstat (limited to 'src/conf_mode/interfaces-tunnel.py')
-rwxr-xr-xsrc/conf_mode/interfaces-tunnel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py
index e73c2b811..3a497bade 100755
--- a/src/conf_mode/interfaces-tunnel.py
+++ b/src/conf_mode/interfaces-tunnel.py
@@ -40,7 +40,7 @@ from vyos.ifconfig import SitIf
from vyos.ifconfig import Sit6RDIf
from vyos.template import is_ipv4
from vyos.template import is_ipv6
-from vyos.util import get_json_iface_options
+from vyos.util import get_interface_config
from vyos.util import dict_search
from vyos import ConfigError
from vyos import airbag
@@ -131,7 +131,7 @@ def apply(tunnel):
# There is no other solution to destroy and recreate the tunnel.
encap = ''
remote = ''
- tmp = get_json_iface_options(interface)
+ tmp = get_interface_config(interface)
if tmp:
encap = dict_search('linkinfo.info_kind', tmp)
remote = dict_search('linkinfo.info_data.remote', tmp)