summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)Author
2025-08-06T7693: add vyconf aware initialization of ConfigTreeQueryJohn Estabrook
2025-08-05Merge pull request #4646 from jestabro/fix-delete-pathsJohn Estabrook
T7688: minor fixes related to management of delete paths
2025-08-05Merge pull request #4643 from MattKobayashi/T7685Daniil Baturin
T7685: load-balancing: fix rules with multiple ports
2025-08-04T7688: owner of vyconf_session calls teardownJohn Estabrook
2025-08-04T7688: allow relative paths in save_configJohn Estabrook
2025-08-04T7685: load-balancing: fix rules with multiple portsMatthew Kobayashi
2025-07-31Merge pull request #4638 from c-po/is-a-ttyViacheslav Hletenko
serial: T7484: treat unavailable serial console devices as non-fatal
2025-07-30serial: T7484: treat unavailable serial console devices as non-fatalChristian Breunig
Instead of failing or starting agetty on an invalid device, we now check whether the specified serial console device is a valid TTY. If it's not, we display a warning to the user and skip starting the agetty process.
2025-07-30T7672: collapse children field from list[tuple] to list[str]John Estabrook
A missing detail in the collapse function left children as a list of tuples (node name, node type).
2025-07-30T7672: fix field entries for paths shared across .xml filesJohn Estabrook
Use the correct pointer reference to append entries to the 'files' and 'children' fields when paths are shared across .xml files.
2025-07-21vyos.utils: T7648: fix undefined variable in install_into_configChristian Breunig
************* Module vyos.utils.misc python/vyos/utils/misc.py:51:46: E0602: Undefined variable 'node' (undefined-variable)
2025-07-21vyos.utils: T7648: fix missing import for ConfigErrorChristian Breunig
2025-07-21vyos.utils: T7648: remove duplicate definition of makedirChristian Breunig
Function makedir defined two times inside the same file.
2025-07-21vyos.utils: T7648: only provide one chown functionChristian Breunig
Remove duplicate function definition vyos.utils.file.chown which was also provided by vyos.utils.permission.chown.
2025-07-21vyos.ifconfig: T7648: fix pylint errorsChristian Breunig
************* Module vyos.ifconfig.control python/vyos/ifconfig/control.py:53:22: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:59:47: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:63:43: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:91:28: E1101: Instance of 'Control' has no 'ifname' member (no-member) python/vyos/ifconfig/control.py:186:35: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:188:37: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:193:35: E1101: Instance of 'Control' has no 'config' member (no-member) python/vyos/ifconfig/control.py:195:37: E1101: Instance of 'Control' has no 'config' member (no-member)
2025-07-21T7648: when using netifaces set "pylint: disable = no-name-in-module"Christian Breunig
As the python netifaces module is written in C - we can not inspect any import line as the linter does not see it. Disable the warnings here.
2025-07-20T6704: limit size of noteworthy list in airbagJohn Estabrook
Use deque instead of list to limit the size of collected stderr messages in airbag.
2025-07-08T7499: call commit only if session_changedJohn Estabrook
2025-07-08T7499: clean up cache filesJohn Estabrook
2025-07-08T7499: add download/uncompress to vyconf load/mergeJohn Estabrook
2025-07-08T7499: add utility to download/uncompress config file, for load/mergeJohn Estabrook
2025-07-08T7499: formattingJohn Estabrook
2025-07-08T7499: expose direct request to http-apiJohn Estabrook
2025-07-08T7499: generated output for adding field 'destructive' to merge functionJohn Estabrook
2025-07-08T7499: use direct request to vyconfd to avoid re-validatingJohn Estabrook
2025-07-08T7499: expose destructive merge in http-apiJohn Estabrook
2025-07-08T7499: generated output for adding field 'cached' to load functionJohn Estabrook
2025-07-08T7499: load from internal representation to avoid re-parsingJohn Estabrook
2025-07-08T7499: fix typo in configtree write_cacheJohn Estabrook
2025-07-08T7499: update vyos-merge-config.py script to use tree merge functionJohn Estabrook
2025-07-08T7499: add interface for (non-)destructive configtree mergeJohn Estabrook
2025-07-03T7588: detach commit-confirm-notify from calling processJohn Estabrook
As we now await the call to commit-confirm, do not run commit-confirm-notify from a subshell.
2025-07-03T7588: add missing path argJohn Estabrook
2025-07-03T7588: restart vyos-commitd, http-api, after setting vyconf_backendJohn Estabrook
2025-07-03Merge pull request #4585 from c-po/copyright-noticeDaniil Baturin
T7591: remove copyright years from source files
2025-07-01Merge pull request #4584 from factor2431/add-cake-featuresDaniil Baturin
T7589: Add no-split-gso and ack-filter for CAKE
2025-07-01Merge pull request #4580 from ↵Daniil Baturin
dmbaturin/T7580-op-cache-generator-standalone-virtual build: T7580: add support for standalone and virtual tag nodes to the op mode cache generator
2025-06-29T7589: Add no-split-gso and ack-filter for CAKEfactor2431
2025-06-29Merge pull request #4581 from talmakion/bugfix/T7544/escape-vrfif-nftablesChristian Breunig
vrf: T7544: Ensure correct quoting for VRF ifnames in nftables
2025-06-28T7591: remove copyright years from source filesChristian Breunig
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 <maintainers@vyos.io>/g' In addition we will error-out during "make" if someone re-adds a legacy copyright notice
2025-06-26build: T7578: fail the package build if there are non-unique op mode nodesDaniil Baturin
to ensure that the JSON cache is usable for command lookup
2025-06-27vrf: T7544: Ensure correct quoting for VRF ifnames in nftablesAndrew Topp
* For VRF create/delete: * Simple dquoting, as before, was parsed away by the shell * Just escaping the double quotes could cause issues with the shell mangling VRF names (however unlikely) * Wrapping original quotes in shell-escaped single quotes is a quick & easy way to guard against both improper shell parsing and string names being taken as nft keywords. * Firewall configuration: * Firewall "interface name" rules support VRF ifnames and used them unquoted, fixed for nft_rule template tags (parse_rule) * Went through and quoted all iif/oifname usage by zones and interface groups. VRF ifnames weren't available for all cases, but there is no harm in completeness. * For this, also created a simple quoted_join template filter to replace any use of |join(',') * PBR calls nft but doesn't mind the "vni" name - table IDs used instead I may have missed some niche nft use-cases that would be exposed to this problem.
2025-06-26build: T7580: add support for standalone and virtual tag nodes to the op ↵Daniil Baturin
mode cache generator
2025-06-24Merge pull request #4562 from jestabro/op-mode-dataDaniil Baturin
T7561: simplify op-mode-definitions XML cache generation
2025-06-24Merge pull request #4573 from c-po/pki-T7574Daniil Baturin
pki: T7574: add optional force argument to renew certbot-issued certificates
2025-06-23pki: T7574: add optional force argument to renew certbot-issued certificatesChristian Breunig
Certbot renewal command in op-mode "renew certbot" only works if any of the certificates is up for renewal. There is no CLI option to forcefully renew a certificate. This is about adding a force option to the CLI and with this addition move the entire certbot renew handling to new-style op-mode commands. vyos@vyos:~$ renew certbot force - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing /config/auth/letsencrypt/renewal/vyos.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Renewing an existing certificate for vyos.io - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Congratulations, all renewals succeeded: /config/auth/letsencrypt/live/vyos/fullchain.pem (success) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hook 'post-hook' ran with output: Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done.
2025-06-23T7355: periodical cleanup of unused Python3 import statementsChristian Breunig
2025-06-21T7561: generate json if no ambiguous paths in (a subset of) XML filesJohn Estabrook
2025-06-20T7561: add option --check-path-ambiguity to show duplicate pathsJohn Estabrook
2025-06-20T7561: refine xml consistency report to ignore children and file fieldsJohn Estabrook