summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-11-06 13:27:22 +0200
committerGitHub <noreply@github.com>2026-11-06 13:27:22 +0200
commitc67221dfa4eac5e2f78eea09028a078a9c63cde6 (patch)
tree3edd0a98e5b126b6e25cd7fabd2411662f0284ce /src
parent0059e631a896b9c46e13d83c6689479fa8d46377 (diff)
parent0949562e1761bd3885664132e9485347afcc50aa (diff)
downloadvyos-1x-c67221dfa4eac5e2f78eea09028a078a9c63cde6.tar.gz
vyos-1x-c67221dfa4eac5e2f78eea09028a078a9c63cde6.zip
Merge pull request #5631 from c-po/T9559
https: T9559: fix bogus port conflict with "vrf default"
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_utils_network.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test_utils_network.py b/src/tests/test_utils_network.py
index 708b6e064..83cf57ffc 100644
--- a/src/tests/test_utils_network.py
+++ b/src/tests/test_utils_network.py
@@ -61,6 +61,8 @@ class TestVyOSUtilsNetwork(TestCase):
self.assertFalse(vyos.utils.network.check_port_availability('192.0.2.1', 443))
# We do not have 2001:db8::1 configured on this system
self.assertFalse(vyos.utils.network.check_port_availability('2001:db8::1', 80, protocol='udp'))
+ # the default VRF is not a device and must behave like no VRF at all
+ self.assertTrue(vyos.utils.network.check_port_availability('127.0.0.1', 8080, vrf='default'))
def test_normalize_prefix(self):
normalize_prefix = vyos.utils.network.normalize_prefix