Page MenuHomeVyOS Platform

smoketest: fix unbound variable issue when checking for VXLAN remote and group error
Closed, ResolvedPublicBUG

Description

DEBUG - ======================================================================
DEBUG - FAIL: test_vxlan_group_remote_error (__main__.VXLANInterfaceTest.test_vxlan_group_remote_error)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG -   File "/usr/libexec/vyos/tests/smoke/cli/test_interfaces_vxlan.py", line 139, in test_vxlan_group_remote_error
DEBUG -     self.assertIn('Both group and remote cannot be specified', str(exception))
DEBUG - AssertionError: 'Both group and remote cannot be specified' not found in '[[interfaces vxlan vxlan60]] failed\nCommit failed\n'

This happens because cm variable is accessed when no longer valid

Details

Version
1.4-stable-202504240621
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)