diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-22 18:06:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 18:06:36 +0200 |
commit | 405ae90fd9cb44e997897c0c58253e752b220c43 (patch) | |
tree | e404c54cf43003a698ee627ac9262aa86b516bbd /src/conf_mode/vrf.py | |
parent | 5ae173c05defa1e230552271018133816ca00467 (diff) | |
parent | ac8dc93755b8e25434f36ab9a665c1a6a9e5bc3b (diff) | |
download | vyos-1x-405ae90fd9cb44e997897c0c58253e752b220c43.tar.gz vyos-1x-405ae90fd9cb44e997897c0c58253e752b220c43.zip |
Merge pull request #3837 from vyos/mergify/bp/sagitta/pr-3834
interfaces: T6592: moving an interface between VRF instances failed (backport #3834)
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-x | src/conf_mode/vrf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index 8d8c234c0..184725573 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -26,7 +26,7 @@ from vyos.ifconfig import Interface from vyos.template import render from vyos.template import render_to_string from vyos.utils.dict import dict_search -from vyos.utils.network import get_interface_config +from vyos.utils.network import get_vrf_tableid from vyos.utils.network import get_vrf_members from vyos.utils.network import interface_exists from vyos.utils.process import call @@ -160,8 +160,8 @@ def verify(vrf): # routing table id can't be changed - OS restriction if interface_exists(name): - tmp = str(dict_search('linkinfo.info_data.table', get_interface_config(name))) - if tmp and tmp != vrf_config['table']: + tmp = get_vrf_tableid(name) + if tmp and tmp != int(vrf_config['table']): raise ConfigError(f'VRF "{name}" table id modification not possible!') # VRF routing table ID must be unique on the system |