diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-12-04 16:17:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 16:17:47 +0000 |
| commit | 3c521b49572da6f5e955efb00a6bd45cc8ced546 (patch) | |
| tree | 9122fbe642cf8983bec1437036ee0fffc3136c13 /python | |
| parent | 02034e4fd77e8af64a7f6a66e5da7fefcd4a9e90 (diff) | |
| parent | e1fd60f8e46965830cecd1932ac3d2039300b6a7 (diff) | |
| download | vyos-1x-3c521b49572da6f5e955efb00a6bd45cc8ced546.tar.gz vyos-1x-3c521b49572da6f5e955efb00a6bd45cc8ced546.zip | |
Merge pull request #4878 from alexandr-san4ez/T8001-current
ipsec: T8001: Commit fails removing VTI interface in IPsec config
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/utils/vti_updown_db.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/utils/vti_updown_db.py b/python/vyos/utils/vti_updown_db.py index f4dd24007..0587b48e8 100644 --- a/python/vyos/utils/vti_updown_db.py +++ b/python/vyos/utils/vti_updown_db.py @@ -173,7 +173,7 @@ class VTIUpDownDB: self._fileHandle.truncate() for interface in self._ifsDown: - vti_link = get_interface_config(interface) + vti_link = get_interface_config(interface) or {} vti_link_up = (vti_link['operstate'] != 'DOWN' if 'operstate' in vti_link else False) if vti_link_up: call(f'sudo ip link set {interface} down') @@ -182,7 +182,7 @@ class VTIUpDownDB: self._ifsDown.clear() for interface in self._ifsUp: - vti_link = get_interface_config(interface) + vti_link = get_interface_config(interface) or {} vti_link_up = (vti_link['operstate'] != 'DOWN' if 'operstate' in vti_link else False) if not vti_link_up: vti = interface_dict_supplier(interface) |
