1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: bridge: bridge-vlan-vni-map: fix display error vnis=vlans instead of vlans=vnis

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2021-05-31 15:27:20 +02:00
parent d42c5f307e
commit 31bddf7647

View File

@ -3888,7 +3888,11 @@ class bridge(Bridge, moduleBase):
# bridge-vlan-vni-map
#
try:
cached_vlans, cached_vnis = self.get_vlan_vni_ranges(
# there's a mix-up vlan_vni should return vlans/vnis and not vnis/vlans
# ifquery-check is also using this function and has already code to work
# around the issue, so to fix our ordering problem we will simply and
# temporarily, swap the two return values
cached_vnis, cached_vlans = self.get_vlan_vni_ranges(
self.cache.get_vlan_vni(ifaceobjrunning.name), compress=True
)