diff options
| author | l0crian1 <ryan.claridge13@gmail.com> | 2025-08-04 15:10:50 -0400 |
|---|---|---|
| committer | l0crian1 <ryan.claridge13@gmail.com> | 2025-08-04 15:10:50 -0400 |
| commit | 38c5df79121096b13c423e8afef5897188e87351 (patch) | |
| tree | 531febac2fd2f020b4406016741cf87172e56ca0 /src | |
| parent | 24886c806d8d32c9154748b40a9542c41a06abfb (diff) | |
| download | vyos-1x-38c5df79121096b13c423e8afef5897188e87351.tar.gz vyos-1x-38c5df79121096b13c423e8afef5897188e87351.zip | |
T7468: add VLAN-to-VNI mapping description
Added check for None value from leaf_node_changed when changing VLAN-to-VNI description.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/interfaces_vxlan.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces_vxlan.py b/src/conf_mode/interfaces_vxlan.py index 34eb3ef5c..81ebf8dda 100755 --- a/src/conf_mode/interfaces_vxlan.py +++ b/src/conf_mode/interfaces_vxlan.py @@ -66,7 +66,8 @@ def get_config(config=None): vxlan.update({'vlan_to_vni_removed': {}}) for vlan in tmp: vni = leaf_node_changed(conf, base + [ifname, 'vlan-to-vni', vlan, 'vni']) - vxlan['vlan_to_vni_removed'].update({vlan : {'vni' : vni[0]}}) + if vni: + vxlan['vlan_to_vni_removed'].update({vlan : {'vni' : vni[0]}}) # We need to verify that no other VXLAN tunnel is configured when external # mode is in use - Linux Kernel limitation |
