diff options
author | Christian Breunig <christian@breunig.cc> | 2023-04-26 12:12:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 12:12:09 +0200 |
commit | 930f76cf88a4175d485bc4e2df4c149ea547b380 (patch) | |
tree | 19d99c1e6c20e8b95ce4dbf94893eb9eba8d20a6 /src | |
parent | 28429f615e1ebe1716388d53343b14ff984dfd18 (diff) | |
parent | a1c559e3660aa6eb1c3871c5ba3d4d9cbe449a47 (diff) | |
download | vyos-1x-930f76cf88a4175d485bc4e2df4c149ea547b380.tar.gz vyos-1x-930f76cf88a4175d485bc4e2df4c149ea547b380.zip |
Merge pull request #1971 from sever-sever/T5181
T5181: Fix for correct deleting vni under vrf
Diffstat (limited to 'src')
-rw-r--r-- | src/conf_mode/vrf_vni.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/vrf_vni.py b/src/conf_mode/vrf_vni.py index 6ea714d8b..87d7798b8 100644 --- a/src/conf_mode/vrf_vni.py +++ b/src/conf_mode/vrf_vni.py @@ -33,12 +33,13 @@ def get_config(config=None): vrf_name = None if len(argv) > 1: vrf_name = argv[1] + else: + return None base = ['vrf', 'name', vrf_name] tmp = conf.get_config_dict(base, key_mangling=('-', '_'), no_tag_node_value_mangle=True, get_first_key=True) - if not tmp: - return None + vrf = {'name': {vrf_name: tmp}} return vrf |