summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-01-08Merge pull request #4290 from jestabro/wildcard-transcludeDaniil Baturin
xml: T7029: allow wildcard in include directive
2025-01-08Merge pull request #4286 from c-po/T7024-vrf-upChristian Breunig
vrf: T7024: instance name "up" and "down" are reserved and should not be used
2025-01-08xml: T7029: allow wildcard in include directiveJohn Estabrook
2025-01-08Merge pull request #4284 from indrajitr/simplify-T7016Daniil Baturin
T7016: Simplify logic for force deleting dynamic IPv4 address from interface
2025-01-08smoketest: T6841: fix config tests which validate migration scripts (#4287)Christian Breunig
This complements commit dda428fc4 ("T6841: firewall: migrate existing VRF in zone based firewall") which provides the new configuration files after CLI was migrated.
2025-01-08smoketest: T6841: fix config tests which validate migration scriptsChristian Breunig
This complements commit dda428fc4 ("T6841: firewall: migrate existing VRF in zone based firewall") which provides the new configuration files after CLI was migrated.
2025-01-07vrf: T7024: instance name "up" and "down" are reserved and should not be usedChristian Breunig
2025-01-07T6998: dhcp: fix depracted utcfromtimestamp usageErkki Eilonen
Deprecated as per https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp Fixes: TypeError: can't subtract offset-naive and offset-aware datetimes Co-authored-by: Erkki Eilonen <erkki@bearmetal.eu>
2025-01-07vyos.ifconfig: T7018: drop 'iftype' class attribute (#4280)Christian Breunig
Under very rare cases we can run into a race condition where interfaces are still in creation phase but are already referenced.. This can trigger: File "/usr/libexec/vyos/conf_mode/system_conntrack.py", line 270, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/system_conntrack.py", line 249, in apply call_dependents() File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 147, in call_dependents f() File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 118, in func_impl run_config_mode_script(script, config) File "/usr/lib/python3/dist-packages/vyos/configdep.py", line 106, in run_config_mode_script mod.verify(c) File "/usr/libexec/vyos//conf_mode/service_conntrack-sync.py", line 72, in verify if len(get_ipv4(interface)) < 1: ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/template.py", line 458, in get_ipv4 return Interface(interface).get_addr_v4() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 334, in __init__ if not self.iftype: ^^^^^^^^^^^ AttributeError: 'Interface' object has no attribute 'iftype' This commit removes the code path in question and the class attribute check. The reason for the iftype attribute in the past was a common _create() method serving for all interface types. As we already have a lot of derived implementations and not all honor the classes iftype/type member - or even worse honor it only in 50% of the occurrences it's time to drop it.
2025-01-07smoketest: T7023: add tac_plus container to live validate login (#4285)Christian Breunig
* smoketest: T7023: unify container image loading * smoketest: T7023: add tac_plus container to live validate login TACACS is pretty sensible to its configuration. Instead of manual testing, extend the smoketest platform to ship a tac_plus container and perform logins against a locally running tac_plus server in a container. The login username/password and TACACS shared secret is generated randomly on the fly for every testcase.
2025-01-07Merge pull request #4253 from natali-rs1985/T6975Daniil Baturin
utils: T6975: Add 'vrf' and 'netns' arguments to functions in 'vyos.utils.process'
2025-01-06packaging: T7020: hard pin libpam-radius-auth and add an explicit dependency ↵Daniil Baturin
on libnss-mapuser (#4281) Upstream 2.0.0 version from Debian has issues
2025-01-06T7016: Simplify logic for force deleting dynamic IPv4 address from interfaceIndrajit Raychaudhuri
2025-01-06configd: T6747: use one long-lived instance of FRRender (#4274)Christian Breunig
* smoketest: T6747: call wait after commit() only for FRR related tests Commit 702a60a8de28 ("smoketest: T6746: wait after commit() until frr-reload is no longer running") added a guard timeout for every commit executed via CLI smoketests. This commit changes the bahavior to only add the guard timeout for FRR related testscases. This improves the overall smoketest time. * configd: T6747: use one long-lived instance of FRRender Previously there was one FRRender() instance per config session. This resulted in re-rendering the FRR configuration every time a new config session was created. Example: vyos@vyos:~$ configure vyos@vyos# set interfaces dummy dum0 description foo vyos@vyos# commit vyos@vyos# exit vyos@vyos:~$ configure vyos@vyos# set interfaces dummy dum0 description bar vyos@vyos# commit vyos@vyos# exit In the past this caused a re-render of the FRR configuration as the delta check added in commit ec80c75d6776 ("frrender: T6746: only re-render FRR config if config_dict did change") evaluated to false, as it operated on a new instance of the FRRender class. With this change there is no FRR re-render, as there is nothing to update in FRR.
2025-01-06Merge pull request #4276 from indrajitr/ddclient-process-2025-01-04Daniil Baturin
ddclient: T5791: Keep ddclient.service in foreground
2025-01-06utils: T6975: Add 'vrf' and 'netns' arguments to functions in ↵Nataliia Solomko
'vyos.utils.process'
2025-01-06Merge pull request #4180 from nicolas-fort/zbf-vrfawareChristian Breunig
T6841: firewall: improve config parsing for ZBF when using VRFs and interfaces attached to VRFs
2025-01-06T6841: firewall: migrate existing VRF in zone based firewallChristian Breunig
VRF support was introduced in VyOS 1.4.0. If a VRF is added as an interface in the zone based firewall, it will be migrated to the new syntax. OLD: set firewall zone FOO interface RED set firewall zone FOO interface eth0 NEW: set firewall zone FOO member vrf RED set firewall zone FOO member interface eth0
2025-01-06T6841: firewall: re-use existing generic-interface-multi.xml.i XML building ↵Christian Breunig
block
2025-01-06T6841: firewall: Fixed issues in ZBF when using VRFsaapostoliuk
Improve config parsing for ZBF when using VRFs and interfaces attached to VRFs
2025-01-06T6841: firewall: improve config parsing for ZBF when using VRFs and ↵Nicolas Fort
interfaces attached to VRFs
2025-01-06ddclient: T5791: extend smoketest for running daemon in foregroundChristian Breunig
2025-01-06ddclient: T5791: Keep ddclient.service in foregroundIndrajit Raychaudhuri
Since the distributed ddclient.service is of type 'exec' now, avoid using process forking and let systemd manage the process directly.
2025-01-06Merge pull request #4278 from yzguy/T7016Christian Breunig
T7016: force delete only dynamic IPv4 address from interface
2025-01-05T7016: force delete only dynamic IPv4 address from interfaceAdam Smith
2025-01-04Merge pull request #4275 from c-po/manifest-jsonChristian Breunig
GitHub: T7007: add build/manifest.json to build artifacts
2025-01-04GitHub: T7007: add build/manifest.json to build artifactsChristian Breunig
Integrated per PR smoketests require the build/manifest.json file to retrieve additional information to be validated inside the runnning image under test.
2025-01-04Merge pull request #4267 from indrajitr/ddclient-test-case-20241229Christian Breunig
T5791: ddclient: Adjust process handling
2025-01-04Merge pull request #4271 from nvollmar/T6994Christian Breunig
T6994: Add textfile collector config option
2025-01-02telegraf: T6477: adjusting "metric_name_label" indentation in config templateds
2025-01-02Merge pull request #4263 from jvoss/srv6_locator_formatDaniil Baturin
srv6: T6984: add locator format configuration
2025-01-02T6994: Add textfile collector config optionNicolas Vollmar
2024-12-31Merge pull request #4270 from c-po/frrender-dhcpChristian Breunig
frrender: T6991: do not loose DHCP default route when no static route is defined
2024-12-31T6949: adds blackbox exporter (#4255)Nicolas Vollmar
* T6949: adds blackbox exporter * T6949: adds basic config generation * T6949: extract shared module config options * T6949: switch to ipv4/6 literals * T6949: moves config file to /run * T6949: adds dns query name option * T6949: adds dns query type values * T6949: adds blackbox exporter to debian/control
2024-12-31frrender: T6991: do not loose DHCP default route when no static route is definedChristian Breunig
The reason is that DHCP routes are not re-generated during FRRrender as long as there is no protocols static entry in the configuration at all. Move out the DHCP configuration read-in from the static section.
2024-12-31T6896: OpenVPN change CRL revoke without restart (#4245)Roman Khramshin
Do not restart service when changed only CRL. Service still restart when cert revoke first time
2024-12-31Merge pull request #4262 from vyos/pr-templateChristian Breunig
GitHub: adjust PR template to our current needs/workflow
2024-12-30srv6: T6984: add locator format configurationJonathan Voss
2024-12-30frr: T6746: additional improvements after 10.2 upgrade (#4259)Christian Breunig
* smoketest: T6746: add substring search in getFRRconfig() Some daemons (e.g. bgpd) have several nested substrings/sections like router bgp 100 address-family ipv4 unicast .. exit-address-family exit We can now use getFRRconfig() with the substring option to extract only address-family ipv4 unicast .. exit-address-family Making config validation more granular * frrender: T6746: only re-render FRR config if config_dict did change * frrender: T6746: fix naming glitch isis/eigrp * frrender: T6746: add --stdout option when running with debug flags * smoketest: T6746: remove unneeded commit_guard time It was an invalid workarround as the underlaying issue seems to be a race condition in CStore. The commit process is not finished until all pending files from VYATTA_CHANGES_ONLY_DIR are copied to VYATTA_ACTIVE_CONFIGURATION_DIR. This is done inside libvyatta-cfg1 and the FUSE UnionFS part. On large non-interactive commits FUSE UnionFS might not replicate the real state in time, leading to errors when querying the working and effective configuration. TO BE DELETED AFTER SWITCH TO IN MEMORY CONFIG
2024-12-30T6983: treat vyos-domain-resolver as a real service (#4261)Christian Breunig
* op-mode: T6983: add "show log" and "monitor log" commands for vyos-domain-resolver * firewall: T6983: drop unused variable domain_resolver_usage_nat * T6983: introduce Python logging module in vyos-domain-resolver * T6983: treat vyos-domain-resolver as a real service
2024-12-30Merge pull request #4269 from indrajitr/dedu-pki-sshChristian Breunig
xml: T5738: De-duplicate 'openssh' tagNode
2024-12-30Merge pull request #4268 from natali-rs1985/T6956Daniil Baturin
op_mode: T6956: Fix for "generate tech-support archive" if /config contains directories
2024-12-30xml: T5738: De-duplicate 'openssh' tagNodeIndrajit Raychaudhuri
Interface definition for pki has redundant `tagNode` for `openssh`. Remove the redundant one.
2024-12-29T5791: ddclient: Increase timeout to test if process name is runningIndrajit Raychaudhuri
2024-12-29op_mode: T6956: Fix for "generate tech-support archive" if /config contains ↵Nataliia Solomko
directories
2024-12-29Merge pull request #4265 from c-po/geoip-cronChristian Breunig
geoip: T6986: add missing cron installation path
2024-12-28Merge pull request #4264 from Firefishy/udev-serial-rule-for-ttyACM-devicesDaniil Baturin
udev: T6985: Fix udev rule to also register ttyACM serial devices
2024-12-28geoip: T6986: add missing cron installation pathChristian Breunig
2024-12-28udev: T6985: Fix udev rule to also register ttyACM serial devicesGrant Slater
2024-12-27GitHub: adjust PR template to our current needs/workflowpr-templateChristian Breunig