<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/smoketest/scripts/cli/test_interfaces_dummy.py, branch rolling</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-03-10T04:15:32+00:00</updated>
<entry>
<title>vyos.ifconfig: T8358: clear qdiscs when deleting mirror CLI node</title>
<updated>2026-03-10T04:15:32+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-03-07T21:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=abc7060ddcca0315682427a1e38faed8cfa01796'/>
<id>urn:sha1:abc7060ddcca0315682427a1e38faed8cfa01796</id>
<content type='text'>
When removing the mirror CLI node to stop mirroring or redirecting traffic
to another interface, the egress configuration was not cleared. This caused
traffic to continue being sent out the SPAN port even after the node was
removed.

Fix by properly clearing all tc(8) qdiscs.

Update smoketests to verify nothing remains after mirror deletion.
</content>
</entry>
<entry>
<title>smoketest: T7858: make failfast main argument dynamic</title>
<updated>2025-09-30T15:19:06+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-09-22T18:49:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2c521f1356378904e3d3a744960de68e8c5b62dc'/>
<id>urn:sha1:2c521f1356378904e3d3a744960de68e8c5b62dc</id>
<content type='text'>
When smoketest debugging is enabled (by creating the file
/tmp/vyos.smoketest.debug), all available smoketests will fail fast instead
of running to completion. This helps reduce test time when something is
broken or undergoing refactoring, as it avoids waiting for the full test suite
to finish.
</content>
</entry>
<entry>
<title>T7591: remove copyright years from source files</title>
<updated>2025-06-28T21:16:52+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-06-28T18:51:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1478516ae437f19ebeb7d6ff9b83dd74f8e76758'/>
<id>urn:sha1:1478516ae437f19ebeb7d6ff9b83dd74f8e76758</id>
<content type='text'>
The legal team says years are not necessary so we can go ahead with it, since
it will simplify backporting.

Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \
's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors &lt;maintainers@vyos.io&gt;/g'

In addition we will error-out during "make" if someone re-adds a legacy
copyright notice
</content>
</entry>
<entry>
<title>smoketest: T5242: automatically detect interface "capabilities"</title>
<updated>2023-05-27T06:57:12+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-05-26T20:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ec8ffd2c967d178c913be645c896434aa3212c9c'/>
<id>urn:sha1:ec8ffd2c967d178c913be645c896434aa3212c9c</id>
<content type='text'>
Current state of vyos-1x smoketests have hardcoded features to test. The
feature support is inside the base class BasicInterfaceTest

class BasicInterfaceTest:
    class TestCase(VyOSUnitTestSHIM.TestCase):
        _test_dhcp = False
        _test_ip = False
        _test_mtu = False
        _test_vlan = False
        _test_qinq = False
        _test_ipv6 = False
        _test_ipv6_pd = False
        _test_ipv6_dhcpc6 = False
        _test_mirror = False

All derived classes need to enable the tests that are supported on this
interface type. Adding new feature to a given interface (like vif support in
T5237) require manually enabling those tests for the given interface.

It would make much more sense, if we can query the config backend for supported
interface options - or in other words - is there a CLI node available that
corresponds to set interfaces ethernet &lt;name&gt; vif - if that's the case,
_test_vlan = True.
</content>
</entry>
<entry>
<title>smoketest: dummy: T4898: enable MTU testcase</title>
<updated>2022-12-30T20:01:51+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-12-30T18:40:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=7923e7c57a7492111c7cec8b04228db0a6f00af3'/>
<id>urn:sha1:7923e7c57a7492111c7cec8b04228db0a6f00af3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: bugfix on proper inheritance levels for classmethod</title>
<updated>2022-04-25T17:15:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-25T16:49:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=dc864082ef896faa7adba8312d782d7066492aa7'/>
<id>urn:sha1:dc864082ef896faa7adba8312d782d7066492aa7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: add shim for every test to re-use common tasts</title>
<updated>2021-03-17T18:18:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-03-17T18:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=0f3def974fbaa4a26e6ad590ee37dd965bc2358f'/>
<id>urn:sha1:0f3def974fbaa4a26e6ad590ee37dd965bc2358f</id>
<content type='text'>
Currently every smoketest does the setup and destruction of the configsession
on its own durin setUp(). This creates a lot of overhead and one configsession
should be re-used during execution of every smoketest script.

In addiion a test that failed will leaf the system in an unconsistent state.
For this reason before the test is executed we will save the running config
to /tmp and the will re-load the config after the test has passed, always
ensuring a clean environment for the next test.
</content>
</entry>
<entry>
<title>smoketest: refactor setUp() for all interface based testcases</title>
<updated>2021-01-26T19:49:55+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-26T19:07:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b48890396dcff074d1e9336ca1db9d3eafe2a12f'/>
<id>urn:sha1:b48890396dcff074d1e9336ca1db9d3eafe2a12f</id>
<content type='text'>
It does not make sense (at all!) to re-initialize the entire class with every
call to setUp(). We neither change the enabled/disabled tastcases dynamically,
not do we adjust the testinterfaces during a run.

Remove the runtime overhead and place one-time init calls into setUpClass()
instead.
</content>
</entry>
<entry>
<title>smoketest: dummy: fix indent</title>
<updated>2021-01-08T17:15:06+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-08T17:15:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=23f55c4bcbe5475ed98d57cf54b645ef0c2cc1a8'/>
<id>urn:sha1:23f55c4bcbe5475ed98d57cf54b645ef0c2cc1a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>smoketest: mirror: T3169: re-add mirror / SPAN test case</title>
<updated>2021-01-05T16:01:20+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-05T16:01:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ce809eee91aa2b7f2980dbfd191cdb9ad2947674'/>
<id>urn:sha1:ce809eee91aa2b7f2980dbfd191cdb9ad2947674</id>
<content type='text'>
Commit ef629504d4 ("smoketest: mirror: drop testcase") dropped the smoketests
entirely as they have been programmed in a wrong way leading to outages on live
development systems which used dummy interfaces for management traffic.
</content>
</entry>
</feed>
