summaryrefslogtreecommitdiff
path: root/data/templates
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-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-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-08Merge pull request #5526 from yzguy/wwan-static-bearer-addressingChristian Breunig
wwan: T9388: apply a static bearer's address/gateway/DNS directly instead of DHCP(v6)/SLAAC
2026-11-07wwan: T9388: honour no-default-route for the IPv6 route of a bearerChristian Breunig
"dhcp-options no-default-route" only suppressed the IPv4 default route of a static bearer, and only with "address dhcp" configured, as the option is dropped from the interface config otherwise. The IPv6 route was always installed. The option now suppresses both routes, as it does for PPPoE, regardless of which address family is configured.
2026-11-07wwan: T9388: apply a static bearer's address/gateway/DNS directlyAdam Smith
QMI raw-ip modems get their address, gateway and DNS from ModemManager as a "static" bearer instead of over a DHCP(v6) or Router Advertisement exchange, so "address dhcp", "address dhcpv6" and "ipv6 address autoconf" never produced a usable config and only worked for IPv4 by accident. Check the interface's connected bearer first. If its method for the family is static, apply it directly; if it is dhcp, or there is no bearer yet, fall through to the existing DHCP(v6) client / kernel SLAAC unchanged. - Address and DNS are applied from the bearer. DNS is registered with vyos-hostsd under the same dhcp-<if>/dhcpv6-<if> tags a real client uses. A DHCP(v6) client which was started while the bearer was still missing, including one which keeps restarting, is stopped before the settings are applied. - The default route is rendered into FRR as a tag 210 static route, the same way a DHCP one is. WWANIf records the gateway of the bearer in /run/vyos-wwan, which the new get_wwan_router() filter reads, and a new block in staticd.frr.j2 fed by get_wwan_interfaces() renders the IPv4 and IPv6 default routes. Distance, no-default-route and VRFs behave as for DHCP, also for an interface without "address dhcp". frrender notices a gateway change, and WWANIf reconciles FRR with vyos-frr-render.py whenever the recorded gateway changes, the way the dhclient lease hook does, so op-mode reconnect is covered as well. The state is written atomically, as the renderer reads it concurrently. - The address installed from the bearer is recorded in /run/vyos-wwan too. It is removed on reconnect, when the family is no longer configured and when the interface goes away, and nothing else on the interface is ever touched. - vyos-netlinkd applies the bearer again after it re-dials a lost session, as the new session can come back with a different address or gateway. A DHCP client used to pick that up on its own. What a previous session left behind is dropped for a family the new one does not supply, the configured DHCP(v6) client or SLAAC is started for it as a commit would, and an incomplete result is retried on the following reconcile passes for a while. - The bearer is picked by its connected status rather than bearers[0], and its config is polled briefly with wait_for() until it is no longer missing or a placeholder, since it can be populated slightly after the bearer reports connected.
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-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-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-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-30firewall: T9549: Fix default-firewall jump for VRF zone in local zoneNataliia Solomko
A local zone combined with a VRF-member zone that has default-firewall failed to commit: the jump for the VRF device rendered with no target ("jump NAME_"), which nftables rejects. The rule now jumps to the configured default-firewall.
2026-10-29Merge pull request #5607 from natali-rs1985/T9534Christian Breunig
mpls: T9534: Fix rendering of LDP neighbor ttl-security disable
2026-10-29mpls: T9534: Fix rendering of LDP neighbor ttl-security disableNataliia Solomko
The LDP template treated "ttl-security" as a node with a "disable" child, but it is a leaf holding either a TTL or "disable". Setting it to "disable" therefore produced "ttl-security hops disable", which FRR rejects, and the commit failed. The template now compares the value itself. The CLI also accepts only 1-254 or "disable", so invalid values are caught at set time instead of failing in FRR.
2026-10-29pppoe: T9533: Fix default route handling in connect-on-demand modeNataliia Solomko
With `connect-on-demand` set, the PPPoE peer configuration still checked the old `default-route` option, which was removed by a migration. As a result pppd never got a default route option: no route was added to trigger the dial, and `no-default-route` had no effect. pppd now follows `no-default-route`: the default route is installed only when the option is not set. A smoketest covers both cases, for pppd and for the FRR default route.
2026-10-22T8382: Add VPP Prometheus exporter supportRitika Chopra
Integrate the VPP Prometheus exporter with VyOS configuration. Upon being configured via VyOS CLI, the exporter reads VPP statistics and exposes selected metrics at /metrics endpoint for Prometheus to scrape. VPP exporter service can co-exist with node-exporter (both independently) to export VPP and kernel stats respectively. The implementation provides functionality: CLI configuration for the exporter, including its listen port, VRF, and selectable stat groups: interfaces, err, buffer-pools, system, workers, nodes, memory, nat44, and acl. Default stat groups of interfaces, err, buffer-pools, system, workers, and memory. Explicitly selecting any groups replaces that default set. The exporter is opt-in: configuring vpp-exporter enables and starts it. Removing the configuration stops the exporter independently of VPP. While configured, it follows VPP’s lifecycle and restarts when its own configuration changes. Validation that requires VPP to be configured before configuring the exporter, and rejects VPP removal while the exporter remains configured. Node metrics through the nodes group when VPP’s per-node-counters setting is enabled. Selecting nodes without that setting produces a warning. Removing the exporter leaves per-node-counters unchanged. VRF support for the exporter service. Co-authored-by: @inetman28 PR-Ref: #5339 (Addressed review comments, removed regex CLI options)
2026-10-22Merge pull request #5459 from ruben-herold/T9289-ipoe-lease-timeViacheslav Hletenko
ipoe-server: T9289: expose accel-ppp lease-time DHCP options
2026-10-22Merge pull request #5583 from alexk37/T9484-vpp-netlink-rmem-maxViacheslav Hletenko
vpp: T9484: keep net.core.rmem_max at VPP's netlink buffer size
2026-10-22Merge pull request #5528 from alexandr-san4ez/T9336-rollingDaniil Baturin
syslog: T9336: Resolve remote FQDN targets within their configured VRF
2026-10-21vpp: T9484: keep net.core.rmem_max at VPP's netlink buffer sizeAlex Kudentsov
VPP requests a 256 MiB netlink receive buffer (nl-rx-buffer-size), but the kernel caps it at net.core.rmem_max, which VyOS sets to 2 MiB, so VPP gets 4 MiB. A large routing table over VPP interfaces can overflow it, and linux-cp then falls back to a full resync. Setting the sysctl from the CLI does not help at boot: system sysctl runs after vpp, so VPP has already opened its socket. - vpp.py raises net.core.rmem_max to the requested size before VPP is (re)started; a higher value is kept. - VPP re-opens its netlink socket on every resync and sizes it again, so system sysctl no longer applies a lower value while VPP is configured; it uses the required size and prints a warning. - When VPP is removed, vpp.py sets net.core.rmem_max back to the value from system sysctl, or to the default from sysctl.d, read with the new vyos.utils.system.sysctl_read_default(). - startup.conf.j2 takes nl-rx-buffer-size from the same value (default_resource_map) instead of its own constant.
2026-10-20Merge pull request #5557 from ar0311/fix/T9462-pptp-mppe-wrong-dict-pathChristian Breunig
vpn: T9462: fix PPTP not applying configured MPPE encryption policy
2026-10-19Merge pull request #5573 from c-po/firewall-fixesChristian Breunig
firewall: T9474: multiple issues in rule processing (time based rules, fragment matching and failing commits)
2026-10-19Merge pull request #5529 from ch4nn0n/T9097-haproxy-check-sslChristian Breunig
haproxy: T9097: add ssl checks-only for TLS health checks
2026-10-19Merge pull request #5581 from jvoss/isis-srv6-no-sr-mplsChristian Breunig
isis: T9485: only enable SR-MPLS when MPLS segment-routing configured
2026-10-19Merge pull request #5578 from alexk37/bgp-t9450-resent-linesChristian Breunig
bgp: T9450: stop re-sending unchanged BGP lines to FRR on every commit
2026-10-19Merge pull request #5574 from c-po/nat-fixesChristian Breunig
nat: T9475: commit failures and weight issue in load-balancing, translation issues for port-ranges
2026-10-19syslog: T9336: Resolve remote FQDN targets within their configured VRFOleksandr Kuchmystyi
Rsyslog resolves remote targets via the process's default routing context regardless of a per-remote 'vrf' setting, so a remote given as an FQDN fails to resolve when the only reachable DNS server lives in a non-default VRF. Changes: - `system_syslog.py` pre-resolves FQDN using VRF remotes at commit time and renders the resolved address instead of the raw FQDN. - `vyos-domain-resolver` collects VRF-bound FQDN targets from syslog and handles a resolved-address change for a syslog remote.
2026-10-18isis: T9485: only enable SR-MPLS when MPLS segment-routing options are setJonathan Voss
"segment-routing on" was rendered whenever the "protocols isis segment-routing" node existed. In FRR that statement enables SR-MPLS only, so an SRv6-only configuration also turned on SR-MPLS: isisd allocated adjacency labels and zebra logged LSP install failures on systems without MPLS label space. "segment-routing on" is now rendered only if global-block, local-block, prefix or maximum-label-depth is configured. SRv6-only configurations no longer enable SR-MPLS; SRv6 rendering is unchanged.
2026-10-18Merge pull request #5570 from jvoss/isis_distribute_link_stateChristian Breunig
isis: T9227: add distribute link-state command
2026-10-19bgp: T9450: render EVPN route-target both as import+exportAlex Kudentsov
FRR never folds a VRF's l2vpn evpn route-targets back into "both" (bgp_config_write_evpn_info(), bgpd/bgp_evpn_vty.c): it always prints the import list and the export list separately, each from its own flag. Unlike the per-VNI "route-target both" context, tools/frr-reload.py has no special case that folds a matching VRF-wide import+export pair back into "both", so the line was deleted and re-added, both RTs with it, on every reload. Render "route-target both" as its "import"+"export" equivalent so the rendered config matches what FRR will echo back.
2026-10-19bgp: T9450: do not re-render the default conditional-advertisement timerAlex Kudentsov
The CLI's XML default for "bgp conditional-advertisement timer" (60) is always present in the config dict, so the line was rendered on every commit. FRR's own default is the same value (DEFAULT_CONDITIONAL_ROUTES_POLL_TIME, bgpd/bgp_conditional_adv.h) and bgp_config_write() never prints it back when the value equals the default, so frr-reload saw the line missing on every reload and sent it again, both in the default instance and in every VRF instance. Templates cannot query the XML definition while rendering, so frrender takes the value from the config defaults of "parameters conditional-advertisement" (conf.get_config_defaults) and adds it to the BGP dict as the key xml_default_conditional_advertisement_timer, for the global instance and for every VRF instance, the same pattern used for "bgp default local-preference" (T9404). bgpd.frr.j2 renders the line only when the configured value differs from xml_default_conditional_advertisement_timer, comparing both as integers so a timer entered as "060" is still treated as 60.
2026-10-19bgp: T9450: do not re-send a peer-group member's inherited activateAlex Kudentsov
FRR only prints a peer-group member's own "neighbor X activate" when the member's AFI/SAFI activation state differs from its peer-group's (bgp_config_write_peer_af(), bgpd/bgp_vty.c). A member bound to a group that already carries the same address-family is activated for it automatically at bind time (peer_group_bind(), bgpd/bgpd.c), so the member's own line was never needed there and frr-reload was re-applying it on every reload. Render the member's own "activate" only when its peer-group does not already carry the same address-family. Applies to both "neighbor ... peer-group" and "neighbor ... interface peer-group" members. A member whose group drops the address-family later still gets its own "activate" back, matching FRR deactivating it (peer_deactivate()). When a peer-group gains an address family that some members already carry, frr-reload deletes those members' own "activate" before it adds the group's, so each such member is deactivated and reactivated once (one session reset, or with dynamic capability one withdraw and re-advertise of that address family) at that commit. Before this change that commit did not reset them. The end state is correct and per-AF overrides survive the reset; this is a one-time cost at the commit that changes the group's address-family, not a lasting functional loss.
2026-10-18ospf: T9441: render "compatible rfc1583" as FRR prints itAlex Kudentsov
"protocols ospf parameters rfc1583-compatibility" was rendered with the alias command "ospf rfc1583compatibility". FRR accepts the alias but stores the setting under "compatible rfc1583" and prints it in that form. frr-reload compares text, so on every reload it found the rendered line missing in the running config, ran "no compatible rfc1583" and added the alias line again, in every commit that reloads FRR, also one that does not touch OSPF. "compatible rfc1583" schedules an SPF in both directions, which costs one extra SPF run per reload. Render the canonical line.
2026-10-18ospf: T9441: migrate "parameters opaque-lsa" to "capability opaque"Alex Kudentsov
"protocols ospf parameters opaque-lsa" and "protocols ospf capability opaque" are two CLI nodes for one FRR setting, FRR's "capability opaque". Keep "capability opaque" only. The migration script ospf/2-to-3 sets "capability opaque" where "parameters opaque-lsa" exists in the default VRF, and deletes the old node (and the "parameters" node when it is left empty). FRR refuses opaque LSAs outside the default VRF, so in a VRF instance the option never took effect: for a VRF the migration drops both "parameters opaque-lsa" and a plain "capability opaque" instead of moving the value into a node FRR would refuse at the next commit. The template renders the line from "capability opaque" only; it rendered the alias form "ospf opaque-lsa" for the old node, which frr-reload found missing in the running config on every reload: while only the old node was set, every commit that reloads FRR reset all adjacencies of that OSPF instance. Tests: a migration unit test (global instance, VRF instance, a VRF with "capability opaque" set directly, both nodes set together in a VRF, and global+VRF independence), the vrf-ospf config test (now carries "parameters opaque-lsa" in both the default instance and a VRF instance; the VRF instance is expected to lose it with no replacement), test_ospf_02 uses the new node, and test_ospf_21 checks the generated FRR config.
2026-10-17nat66: T9475: rebuild NAT66 table when rule file and table drift apartChristian Breunig
The NAT66 ruleset only deleted the existing table when its rule file in /run was present. A table removed while the file stayed made the delete, and with it every following commit, fail. The table is now declared right before it is deleted, so each commit rebuilds it regardless of what is currently loaded.
2026-10-17nat: T9475: declare FQDN sets only onceChristian Breunig
The FQDN sets used by NAT rules were declared twice in the NAT table.
2026-10-17nat: T9475: recover from stale nftables rule filesChristian Breunig
Whether the NAT tables already exist was derived from the rendered rule files in /run. A failed commit could leave such a file behind without the table, every later NAT commit then tried to delete a missing table and failed with "Configuration file errors encountered!" until reboot. The NAT and static NAT tables are now declared before they are deleted, which succeeds whether or not they exist.
2026-10-17firewall: T9474: keep fragment matching working alongside packet marksChristian Breunig
Fragments were detected by overwriting the whole packet mark with a fixed value before reassembly. Any later mark - a raw "set mark" or a policy route "set table" - replaced it, so "fragment match-frag" no longer matched, and marks already present on fragments were lost. Fragments now only get bit 31 of the mark, which no configurable firewall or routing policy mark uses: - fragment matching tests the bit, mark matching ignores it - firewall and policy route mark writers keep it - policy route and local-route ip rules mask it while fragments are routed - it is cleared after the forward and input filters, so later consumers such as QoS or IPVS see the original mark WAN load-balancing still overwrites the mark and keeps the previous behaviour for fragments.
2026-10-17wan-load-balance: T9474: rebuild table when rule file and table drift apartChristian Breunig
The WAN load-balancing ruleset only deleted the existing table when its rule file in /run was present. A table removed while the file stayed made the delete, and with it the ruleset reload, fail. The table is now declared right before it is deleted, so each reload rebuilds it regardless of what is currently loaded.
2026-10-17conntrack: T9474: rebuild conntrack tables when rule file and table drift apartChristian Breunig
The conntrack ruleset only deleted the existing tables when its rule file in /run was present. A table removed while the file stayed made the delete, and with it every following commit, fail. The tables are now declared right before they are deleted, so each commit rebuilds them regardless of what is currently loaded.
2026-10-17policy: T9474: rebuild PBR mangle tables when rule file and table drift apartChristian Breunig
The policy route ruleset only deleted the existing mangle tables when its rule file in /run was present. A table removed while the file stayed made the delete, and with it every following commit, fail. Both mangle tables are now declared right before they are deleted, so each commit rebuilds them regardless of what is currently loaded.
2026-10-17firewall: T9474: rebuild filter tables when rule file and table drift apartChristian Breunig
The generated ruleset only deleted the existing tables when the rule file in /run was present. If the file and the loaded tables drifted apart, e.g. a table was removed while the file stayed, the delete failed and every following commit failed with it. The tables are now declared right before they are deleted, so the delete succeeds whether or not the table exists and each commit rebuilds them from scratch.
2026-10-17isis: T9227: add distribute link-state commandJonathan Voss
2026-10-14Merge pull request #5552 from c-po/T9456-container-kernel-overlayfsNataliia S.
container: T9456: use kernel overlayfs unless storage sits on overlayfs
2026-10-14vpn: T9462: fix PPTP not applying configured MPPE encryption policyAdam Rogers
The PPTP config template read the MPPE setting from the wrong place in the config dict, so the [pptp] section of the generated accel-ppp config always got an empty value. The PPTP module reads MPPE from that section alone, so any configured "require", "prefer" or "deny" was silently ignored and accel-ppp fell back to its permissive default - an admin setting "mppe require" got no enforcement, with no error at commit or runtime. Read the setting from the same place the L2TP template does, and add a PPTP smoketest asserting the value in both the [pptp] and [ppp] sections.