diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-02-18 15:52:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 15:52:36 +0000 |
| commit | 752b400aaf5520c29726dadfc94127a06e0ad5a9 (patch) | |
| tree | ce3d9e8320ccb20fc00731d60d543d7499a86dd6 /src | |
| parent | 774f775ea4875f986a9624f1b201ee76aea0da93 (diff) | |
| parent | 7897f8d216295b32626dc4d5604349812c592921 (diff) | |
| download | vyos-1x-752b400aaf5520c29726dadfc94127a06e0ad5a9.tar.gz vyos-1x-752b400aaf5520c29726dadfc94127a06e0ad5a9.zip | |
Merge pull request #15 from sever-sever/T7168
T7168: Add IPsec XFRM netlink plugin and CLI
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/vpp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py index fe6436c15..ec6873e0d 100755 --- a/src/conf_mode/vpp.py +++ b/src/conf_mode/vpp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2023-2024 VyOS Inc. +# Copyright (C) 2023-2025 VyOS Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -139,6 +139,10 @@ def get_config(config=None): config = config_dict_merge(default_values, config) + # Ignore default XML values if config doesn't exists + if not conf.exists(base_settings + ['ipsec']): + del config['settings']['ipsec'] + # add running config if effective_config: config['effective'] = effective_config |
