summaryrefslogtreecommitdiff
path: root/smoketest/scripts
AgeCommit message (Collapse)Author
2026-11-12Merge pull request #5648 from c-po/T9606-ospf-compatibleKyrylo Yatsenko
ospf: T9606: add "compatible" node for RFC1583 and RFC7474 options
2026-11-12ospf: T9606: add "compatible rfc7474" to control strict sequence number ↵Christian Breunig
validation FRR now makes strict RFC7474 sequence number validation for OSPF cryptographic authentication optional. It is on by default and only the "no compatible rfc7474" form is shown. The new CLI node "compatible rfc7474" enables strict validation. When it is not set, "no compatible rfc7474" is rendered. Migration does not set it, so the previous behaviour of non-strict sequence number validation is kept on upgraded routers. Users must explicitly enable strict validation.
2026-11-12ospf: T9606: move "parameters rfc1583-compatibility" to "compatible rfc1583"Christian Breunig
The RFC1583 option sat under "parameters" although FRR groups it with its other "compatible" commands. It now lives under "compatible rfc1583" for the default and VRF instances. Migration moves an existing setting and drops a "parameters" node left empty by the move.
2026-11-12Merge pull request #5566 from natali-rs1985/T9466Viacheslav Hletenko
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
2026-11-12Merge pull request #5619 from alexandr-san4ez/T9329-rollingViacheslav Hletenko
telegraf: T9329: Add PKI based TLS options for InfluxDB output
2026-11-12Merge pull request #5637 from c-po/T6301-dhcpv6-client-release-timeoutViacheslav Hletenko
dhcpv6-client: T6301: do not block commits on an unanswered Release
2026-11-11telegraf: T9329: Add PKI based TLS options for InfluxDB outputOleksandr Kuchmystyi
Add a reusable `tls` node for Telegraf outputs and use it for InfluxDB: `ca-certificate`, `certificate`, `server-name` and `insecure`. Referenced PKI objects are written to `/run/telegraf/certs`.
2026-11-10Merge pull request #5640 from natali-rs1985/T9601Viacheslav Hletenko
telegraf: T9601: Pass Azure Data Explorer credentials via the environment file
2026-11-10Merge pull request #5638 from c-po/T9587-vyos-op-run-suidViacheslav Hletenko
debian: T9587: restore SUID bit on vyos-op-run
2026-11-09telegraf: T9601: Pass Azure Data Explorer credentials via the environment fileNataliia Solomko
The Azure client ID, secret and tenant ID were only set in the commit process environment, so they never reached the telegraf service and the Azure Data Explorer output could not authenticate. The secret also stayed in the configuration daemon after the commit. The credentials are now written to the same root-only environment file as the InfluxDB token, and changing them restarts telegraf.
2026-11-09load-balancing: T9466: Fix listen-address check for VRF, link-local and new ↵Nataliia Solomko
IPv6 addresses The listen-address check ignored the HAProxy VRF. An address on an interface in that VRF was reported as not assigned. With "vrf default" the port check always failed. Changing the VRF only reloaded HAProxy, so it kept running in the old VRF. HAProxy cannot parse a link-local address with its "%interface" scope. The commit passed, but HAProxy failed to load the config. A new IPv6 address cannot be used until duplicate address detection finishes. Adding it together with the listen-address, as on every boot, was refused as "port used by another service". Now: - addresses and ports are checked inside the HAProxy VRF, and "default" means no VRF - HAProxy restarts when its VRF changes - a link-local address is passed to HAProxy as "bind <address> interface <interface>"; one without an interface is refused - the check waits until a new IPv6 address can be used
2026-11-08op-mode: T9587: reject control characters in operator commandsChristian Breunig
The special character check for operator-level users allowed any whitespace, including newlines. Tag node values are substituted into a shell command which runs as root, so an operator could append arbitrary commands, e.g. "vyos-op-run show interfaces ethernet $'eth0\nid'". Only plain spaces are accepted now, everything else is rejected before privileges are raised. The operator smoketest covers this case.
2026-11-08smoketest: T9587: verify operator users can run op-mode commandsChristian Breunig
No smoketest logged in as an operator-level user, so losing the SUID bit on the op-mode runner went unnoticed. Add a test which checks the SUID bit, then logs in via SSH as an operator and verifies that commands in the command-policy return the same output as for an admin, while commands outside of it are rejected.
2026-11-08Merge pull request #5629 from natali-rs1985/T9569Christian Breunig
telegraf: T9569: Pass InfluxDB token via a root-only environment file
2026-11-08Merge pull request #5632 from sever-sever/T9582Christian Breunig
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
2026-11-08Merge pull request #5634 from natali-rs1985/T9588Christian Breunig
http-api: T9588: Keep config strings out of world-readable /tmp
2026-11-08Merge pull request #5633 from natali-rs1985/T9585Christian Breunig
nhrp: T9585: Fix verify() never validating NHRP tunnels
2026-11-08utils: T9322: simplify address assignment lookup and document ValueErrorChristian Breunig
The lookup for an address on all interfaces carried a copy of the zone index and VRF filtering that already exists in the lookup returning the matching interfaces. It now delegates to it, so the two cannot drift. The per-interface address match is written as a single condition, the comments are trimmed, and the docstrings state that anything but a single address raises ValueError instead of being reported as not assigned. The sflow zone index smoketest removes the dummy interface it creates, and the unit tests drop a stale task reference and a duplicate import.
2026-11-08utils: T9322: reject addresses that are not a single address and honour zone ↵Ruben Herold
indexes The helper that tells whether an address is assigned to an interface accepted ranges and addresses with a zone index. A range ended in a traceback. A zone index was ignored, so an address on the loopback interface was reported as assigned to the interface named in the zone. The helper now rejects everything that is not a single address, a zone index included. The functions that look for an address on all interfaces use the zone to pick the one interface to check, so a zone that names an interface which does not hold the address is no longer accepted. The command that lists the addresses is passed as a list, so the interface name and the namespace do not reach a shell. Unit tests and a smoketest cover the cases.
2026-11-07dhcpv6-client: T6301: do not block commits on an unanswered ReleaseChristian Breunig
When stopped, dhcp6c removes its leases at once but then retransmits the Release for ~30 seconds if the server never replies. As the client is stopped or restarted synchronously, every commit deleting "address dhcpv6", changing "dhcpv6-options" or moving the interface to another VRF hung for that long. Stopping the client now waits at most 5 seconds for it to exit before it is killed, which is treated as a clean stop so the unit does not end up failed. Add a smoketest dropping the Release on a veth pair with a local DHCPv6 server, verifying the commit returns quickly and the lease is removed.
2026-11-06tunnel: T9193: keep accepting a lone zero-keyed GRE tunnel on an any sourceChristian Breunig
A GRE tunnel with source-address 0.0.0.0, no remote and "parameters ip key 0" used to commit, but was refused once a zero key stopped counting as a key for such a tunnel. That breaks existing configurations on upgrade. Accept it again whenever a key is configured at all. A zero key still cannot tell two such tunnels apart, and the collision check keeps refusing the second one, so only the single-tunnel case changes back.
2026-11-06tunnel: T9193: do not collide GRE tunnels of different encapsulationChristian Breunig
The Kernel keeps gre and gretap tunnels in tables of their own, so a gre and a gretap tunnel may share local address, remote address and GRE key. Only compare tunnels of the same encapsulation.
2026-11-06tunnel: T9193: match GRE tunnel uniqueness check to the KernelLee Clements
The pairwise GRE collision check did not follow the Kernel's notion of a duplicate tunnel. With a key set it ignored remote and source-interface, rejecting tunnels the Kernel keeps apart. Without one it refused keyless tunnels on different source-interfaces, and collided a keyless tunnel with a keyed one, which also left the keyless tunnel failing every later commit. A zero key was judged differently depending on which side was verified. Two tunnels now collide only when local address, remote, source-interface and key all match, as ip_tunnel_find() decides. An any address counts as unset, and a zero key is treated as no key only where neither endpoint is set. Keys are compared as the value the Kernel stores, so octal spellings such as "010" are caught and invalid ones such as "08" are refused on commit. Error messages name the configured source and the shared node. Smoketests cover the new cases.
2026-11-06http-api: T9588: Keep config strings out of world-readable /tmpNataliia Solomko
The /config-file endpoint wrote config strings to /tmp/config.file, readable by any local user and never removed. A file pre-created at that path by another user made every later request fail. The string now goes to a private temp file that is always removed. The load and merge helpers, and the vyconf session, also remove their own /tmp copy when loading raises, e.g. on a syntax error.
2026-11-06nhrp: T9585: Fix verify() never validating NHRP tunnelsNataliia Solomko
The NHRP configuration checks looked for the tunnel settings at the top level of the shared FRR config dict, but they are nested under the 'nhrp' key. None of the checks ran, so invalid configs committed silently: a missing tunnel interface, a non-mGRE tunnel or one with a remote address, a missing network-id, and map/nhs entries without valid NBMA addresses. The result was an inactive NHRP or a generic frr-reload failure. The checks now read the NHRP part of the config, and an NHRP tunnel that refers to a missing interface is rejected with a clear error.
2026-11-06telegraf: T9569: Pass InfluxDB token via a root-only environment fileNataliia Solomko
The InfluxDB token was set with Environment= in the systemd drop-in, so any local user could read it with "systemctl show". The token is now written to a root-only environment file loaded by systemd, and no longer shows up in "systemctl show". Telegraf is restarted when the token changes, as a reload would keep the old value.
2026-11-06Merge pull request #5631 from c-po/T9559Viacheslav Hletenko
https: T9559: fix bogus port conflict with "vrf default"
2026-11-06T9582: Fix OpenConnect RADIUS accounting server missing from radius_serversViacheslav Hletenko
Fix swapped dict_search() arguments and check the valueless "accounting mode radius" node with "is not None", so the accounting server key is written to /run/ocserv/radius_servers. Add smoketest with separate authentication and accounting servers.
2026-11-05qos: T6393: police ingress traffic before redirecting itChristian Breunig
With an ingress limiter and "redirect" on the same interface, the redirect filter was evaluated first and took all traffic, so the limiter never applied. The limiter filters of such an interface now redirect the traffic after policing it: what exceeds the rate is handled by "exceed", conforming traffic is redirected. A "not-exceed ok" is passed on to the redirect instead of ending the actions. The interface's own redirect filter moves to the lowest priority and only catches traffic no limiter class matched; an interface commit only replaces that filter and keeps the limiter in place.
2026-11-05qos: T6393: keep redirect filter when applying an ingress policyChristian Breunig
An interface with both an ingress QoS policy and "redirect" lost its redirect filter on every QoS commit, including boot. QoS re-applied the interface redirect first and then re-created the ingress qdisc for its own policy, dropping the redirect filter again. Mirror and redirect are now re-applied after the QoS policies, and the redirect re-uses an existing ingress qdisc instead of failing to add it.
2026-11-05interfaces: T6393: install mirror and redirect filters for VLAN targetsChristian Breunig
A VLAN sub-interface used as mirror or redirect target (e.g. bond0.10) was only accepted if it already existed in the Kernel. The configuration committed at runtime, but at boot the source interface is committed before the VLAN is created - verify failed and the whole source interface was rolled back, as reported for tunnel targets. A VLAN target is now also accepted if its parent interface has the vif, vif-s or vif-c configured on the CLI. VLAN sub-interfaces learn which interfaces mirror or redirect into them and install their filters once created, as other interfaces already do. Add a config load test mirroring and redirecting into tunnel and bond VLAN targets, which are committed after the ethernet sources.
2026-11-05smoketest: T6393: mirror and redirect into a target created laterciaens
Extend the interface base tests: a mirror or redirect target that is neither configured nor existing is rejected, and mirroring (redirecting) all test interfaces into a GRE tunnel created in the very same commit, i.e. after them due to its higher priority, succeeds with a filter on every source.
2026-11-05https: T9559: fix bogus port conflict with "vrf default"Christian Breunig
Committing "set service https vrf default" failed with "TCP port 443 in vrf default is already used by another service" although nothing listened on the port. The port check bound its test socket to a VRF device named "default", which does not exist, and reported that failure as a port conflict. The default VRF is now treated like no VRF at all. A VRF device that does not exist no longer counts as a busy port, as nothing can listen in it; any other error is raised instead of being reported as a conflict. The same check is used by the Prometheus VPP exporter.
2026-11-03Merge pull request #5626 from natali-rs1985/T9566Christian Breunig
webproxy: T9566: Pass LDAP bind password via file instead of command line
2026-11-03webproxy: T9566: Pass LDAP bind password via file instead of command lineNataliia Solomko
The LDAP bind password was passed to `basic_ldap_auth` with `-w`, so any local user could read it from `/proc/*/cmdline`. It was also written in plain text to `squid.conf`. The password is now written atomically to /run/squid-ldap.secret (0600, owned by proxy), unchanged including spaces, and passed with -W. The file is removed when LDAP authentication no longer uses a password.
2026-11-03Merge pull request #5621 from natali-rs1985/T9560Viacheslav Hletenko
openvpn: T9560: Render tls-auth in site-to-site mode
2026-11-02openvpn: T9560: Render tls-auth in site-to-site modeNataliia Solomko
In site-to-site mode "tls auth-key" was accepted but never used. The key direction is now taken from "tls role": active uses 1, passive uses 0. A raw "openvpn-option --tls-auth" in site-to-site mode, the only way to use the key until now, is left as it is: no tls-auth is rendered next to it, so existing tunnels keep working.
2026-11-02Merge pull request #5620 from natali-rs1985/T9557Viacheslav Hletenko
ha: T9557: Verify real-server port for every virtual-server
2026-11-02ha: T9557: Verify real-server port for every virtual-serverNataliia Solomko
The real-server port check ran only for the last virtual-server, so a real-server without a port on any other virtual-server passed verify and keepalived received a real_server entry with no port. The check now runs for each virtual-server.
2026-11-01frrender: T9482: drop a blackhole route FRR would refuseChristian Breunig
The default route of a DHCP or PPPoE interface changes with an interface-only commit or a lease event, without a commit of the static routes. If it gets the same prefix and distance as a blackhole or reject route, FRR refuses the reload and every static route added with it is lost. The rendered FRR configuration is now checked for a blackhole or reject route next to any other route of the same prefix and distance, per VRF and table. Such a blackhole or reject route is not rendered, and an error naming it is logged to the journal. Prefixes are compared in their normalized form, as FRR stores them.
2026-11-01static: T9482: check static routes onlyChristian Breunig
Verification also refused a blackhole or reject default route next to the default route of a PPPoE interface, or of a DHCP interface once its lease had a router. Those routes change without a commit of the static routes, by an interface-only commit or a lease event. The check missed those cases, depended on the lease, and was not covered by the migration, so a PPPoE configuration with a plain blackhole default route failed to load after the upgrade. Only conflicts between static routes are refused now, the renderer handles the interface default routes. The default distance is looked up only for a route without a distance. The migration comment claimed FRR keeps the route configured first. A conflict makes frr-reload lose every static route of that reload. A unit test covers the migration, and the config test asserts which route was disabled.
2026-11-01static: T9482: handle a blackhole next to a next-hop of the same distanceRuben Herold
FRR staticd refuses a blackhole or reject route next to a next-hop or interface route of the same prefix and distance. VyOS accepted the combination, the commit failed later in frr-reload and on some FRR versions the config manager stalled. Add a disable node to blackhole and reject. Verification refuses an enabled blackhole or reject route next to a next-hop, interface or dhcp-interface route of the same distance, and blackhole together with reject, in routes, tables and VRFs. The same applies to the default route of a PPPoE interface and of a DHCP interface that has a gateway. A commit that changes only such an interface does not run the check, frr-reload refuses it and the commit is rolled back. A config migration sets disable on the route FRR did not apply, so existing configurations keep loading and route as before.
2026-10-31Merge pull request #5615 from ↵Christian Breunig
ruben-herold/T9543-ipsec-reset-default-connection-type ipsec: T9543: start a peer again on reset when connection-type is unset
2026-10-31smoketest: T9543: assign the local address in the ipsec reset testChristian Breunig
The reset test configured its peers with a local address that was not present on any interface, so starting the peer at commit relied on how charon handles a source address the router does not own. Assign the address to the interface IPsec is bound to and remove it again at the end of the test.
2026-10-31ipsec: T9543: drop checks for an unset connection-typeChristian Breunig
Since connection-type defaults to initiate, it is always present in the peer configuration. The swanctl template and the reset command still handled an unset value as a separate case, which can no longer happen. Compare against the value directly instead. The reset smoketest only checked for error messages that cannot appear, because a failed reset already aborts the test. It now verifies that reset does not start a peer that is not started at commit.
2026-10-31Merge pull request #5479 from c-po/T3871-ifname-storeChristian Breunig
T3871: bind interface names to hardware slots instead of hw-id
2026-10-31Merge pull request #5591 from ruben-herold/T9442-frrender-cacheChristian Breunig
frrender: T9442: cache the FRR configuration only after it was applied
2026-10-31frrender: T9442: reload FRR when the rendered configuration was not appliedChristian Breunig
A failed reload only dropped the in-memory cache. The record of the configuration FRR runs still held the previous one, so the DHCP render helper skipped a return to it while FRR kept a part of the failed configuration. After a rejected reload test, the rendered file also kept the rejected configuration. Change detection now also requires the rendered file to match the applied one, and a failed reload removes that record. The next commit then renders and reloads FRR again, even when it returns to the previous configuration. A smoketest stops FRR during a commit and verifies that committing again brings the configuration into FRR.
2026-10-31smoketest: T3871: cover the rescan giving a radio a nodeChristian Breunig
A radio is not in the interface mapping file, as every interface on a phy carries that phy's address and there is nothing there to anchor a name to. Nothing checked that the rescan finds one on the system instead, so the regression which left a radio without a configuration node went unnoticed. Run the installed helper against a copy of the running configuration, on an interface the testcase creates for itself so it does not depend on what another one left behind. Reverting the fix makes it fail, with no node for the radio at all. It lives in a file of its own because the test shim keys its configuration session on the process id, and a second testcase class in one file tears that session down underneath the first.
2026-10-31ethernet: T3871: leave a bond member's MTU alone while it is still enslavedChristian Breunig
Deleting the ethernet configuration of a member of a jumbo bond dropped that member to the default MTU while the bond went on using it at 9000. It stayed the active slave, so jumbo frames were discarded in both directions, small ones passed, and nothing was logged. A bond owns its members' MTU just as it owns their address - the ethernet path already refuses to let a member set either, and says so. The reset now waits, like the address, until the bond has released the port. The bonding smoketest covers both halves on a running system: while the member is enslaved it must keep the bond's address and MTU, and once the bond releases it, it must get its own address and the default MTU back.