Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-07-30 | system: op-mode: T3334: replace some print() statements with Warning() | Christian Breunig | |
Make it more obvious for the user aber the severity of his action. | |||
2024-07-30 | system: op-mode: T3334: allow delayed getty restart when configuring serial ↵ | Andrew Topp | |
ports * Created op-mode command "restart serial console" * Relocated service control to vyos.utils.serial helpers, used by conf- and op-mode serial console handling * Checking for logged-in serial sessions that may be affected by getty reconfig * Warning the user when changes are committed and serial sessions are active, otherwise restart services as normal. No prompts issued during commit, all config gen/commit steps still occur except for the service restarts (everything remains consistent) * To apply committed changes, user will need to run "restart serial console" to complete the process or reboot the whole router * Added additional flags and target filtering for generic use of helpers. | |||
2024-07-04 | migration: T6007: add missing check for None in utility function | John Estabrook | |
An empty component version string will trigger a full migration, however, the case of component_version is None was missed in a utility function. Fix comment formatting. | |||
2024-07-03 | locking: T6544: Added locking util | zsdc | |
Sometimes we need a reliable way to lock an execution until some other operation is not done. This commit introduces locking util, which can be used as a common lock, even between different processes. Usage example: ``` from vyos.utils.locking import Lock lock = Lock('my_lock_id') lock.acquire(timeout=10) print(f'Lock acquired: {lock.is_locked}') lock.release() ``` | |||
2024-07-04 | T6546: unused import check permission update and fix | Vijayakumar A | |
2024-07-03 | op-mode: T6498: add machine-readable tech support report script | Daniil Baturin | |
2024-06-28 | utils: T6530: add a helper for easily calling iproute2 commands | Daniil Baturin | |
2024-06-26 | migration: T6007: fix cosmetic issue of extra newline | John Estabrook | |
2024-06-26 | migration: T6007: drop restrictive perms, already set on config.boot | John Estabrook | |
2024-06-26 | migration: T6007: remove obsoleted | John Estabrook | |
2024-06-26 | migration: T6007: add util add_system_version to replace *_system_footer | John Estabrook | |
2024-06-26 | migration: T6007: update load_config.py | John Estabrook | |
2024-06-26 | migration: T6007: write configtree operations to log | John Estabrook | |
2024-06-26 | migration: T6007: update migration class | John Estabrook | |
2024-06-26 | migration: T6007: add version object for config file and system | John Estabrook | |
2024-06-26 | migration: T6007: add exception in base for use by migration files | John Estabrook | |
2024-06-26 | migration: T6007: use load_as_module_source for files without extension | John Estabrook | |
2024-06-26 | migration: T6447: fix missing check before reset to checkpoint | John Estabrook | |
2024-06-26 | migration: T6447: add traceback on error | John Estabrook | |
2024-06-26 | vyos.utils.dict: T5195: fix syntax warning | John Estabrook | |
2024-06-26 | interfaces: T6519: harden config migration if ethernet interface is missing | Christian Breunig | |
During a corner case where the configuration is migrated to a different system with fewer ethernet interfaces, migration will fail during an image upgrade. vyos.ethtool.Ethtool() is instantiated with an invalid interface leading to an exception that kills the migrator | |||
2024-06-24 | Merge pull request #3718 from dmbaturin/T6514-system-storage-raw | Daniil Baturin | |
op-mode: T6514: rework the "show system storage" code to handle live CD systems correctly | |||
2024-06-24 | op-mode: T6514: rework the "show system storage" code | Daniil Baturin | |
to handle live CD systems correctly and allow reusing the functions from other scripts | |||
2024-06-24 | Merge pull request #3701 from jestabro/configd-drop-env-sudo | Christian Breunig | |
configd: T6504: send sudo_user on session init and set env variable | |||
2024-06-24 | Merge pull request #3683 from dmbaturin/T6501-lsmod-on-steroids | John Estabrook | |
op mode: T6501: add "run show kernel modules" | |||
2024-06-23 | vyos.utils: T6504: add interactive op-/configure mode support for ↵ | Christian Breunig | |
get_current_user() | |||
2024-06-21 | Merge pull request #3684 from dmbaturin/T6498-uptime-helpers | John Estabrook | |
op mode: T6498: move uptime helpers to vyos.utils.system | |||
2024-06-21 | op mode: T6498: move uptime helpers to vyos.utils.system | Daniil Baturin | |
to be able to call them from the new tech-support script | |||
2024-06-20 | Merge pull request #3654 from talmakion/bugfix/T5514 | John Estabrook | |
op-mode: T5514: Allow safe reboots to config defaults when config.boot is deleted | |||
2024-06-19 | macsec: T5447: fix error message syntax - there is no tx and rx key, only key | Christian Breunig | |
2024-06-19 | op mode: T6501: add "run show kernel modules" | Daniil Baturin | |
2024-06-19 | op-mode: T5514: Allow safe reboots to config defaults when config.boot is ↵ | Andrew Topp | |
deleted * Added flag to vyos.config_mgmt.unsaved_commits() that will tolerate missing config.boot for specific circumstances * Shutdown/reboot uses this flag; config will regenerate from defaults after a reboot | |||
2024-06-15 | T6489: add abstraction vyos.utils.configfs to work natively with the config ↵ | Christian Breunig | |
filesystem | |||
2024-06-15 | T6489: add abstraction vyos.utils.auth.get_current_user() | Christian Breunig | |
2024-06-15 | T6489: add vyos_configdir to the dictionary of default directories | Christian Breunig | |
2024-06-10 | op-mode: T6471: add optimized get_config_dict | John Estabrook | |
2024-06-10 | vyos.utils: T5195: import vyos.cpu to this package | Christian Breunig | |
The intention of vyos.utils package is to have a common ground for repeating actions/helpers. This is also true for number of CPUs and their respective core count. Move vyos.cpu to vyos.utils.cpu | |||
2024-06-09 | op-mode: T6424: ipsec: honor certificate CN and CA chain during profile ↵ | Christian Breunig | |
generation In e6fe6e50a5c ("op-mode: ipsec: T6407: fix profile generation") we fixed support for multiple CAs when dealing with the generation of Apple IOS profiles. This commit extends support to properly include the common name of the server certificate issuer and all it's paren't CAs. A list of parent CAs is automatically generated from the "PKI" subsystem content and embedded into the resulting profile. | |||
2024-06-06 | grub: T6453: Fixed GRUB variables parsing | zsdc | |
To parse variables with `=` a variable name should be limited by alphanumerical characters only. | |||
2024-06-06 | Merge pull request #3578 from nicolas-fort/raw-hook | Daniil Baturin | |
T3900: Add support for raw tables in firewall | |||
2024-06-06 | Merge pull request #3573 from talmakion/bugfix/T6401-2 | Daniil Baturin | |
vxlan: T6401: Avoid calling get_vxlan_vni_filter() unless we need it | |||
2024-06-05 | migration: T6006: add activation script dir and helper function | John Estabrook | |
2024-06-05 | migration: T6447: add module compose_config | John Estabrook | |
2024-06-05 | migration: T6006: update config.boot.default and move to vyos-1x | John Estabrook | |
2024-06-01 | vxlan: T6401: Avoid calling get_vxlan_vni_filter() unless we need it | Andrew Topp | |
`bridge vni show dev vxlanX` will exit with an error if no VNI filters are installed, but the getter is used even when we haven't installed any. This fix avoids fetching a list of VNI filters unless we know we've created some. | |||
2024-05-30 | vyos.ifconfig: T6421: verify /etc/hostname exists before reading | Christian Breunig | |
Inspired-By: Brandon Zhi <Huiyuze_Zhi@protonmail.com> | |||
2024-05-27 | T5786: Add set/show system image to /image endpoint | khramshinr | |
2024-05-23 | Merge pull request #3399 from 0xThiebaut/suricata | Christian Breunig | |
suricata: T751: Initial support for suricata | |||
2024-05-22 | Merge pull request #3502 from dmbaturin/T6385-yes-no-ctrl-c | Christian Breunig | |
vyos.utils.io: T6385: handle keyboard interrupts in ask_yes_no | |||
2024-05-22 | vyos.utils.io: T6385: handle keyboard interrupts in ask_yes_no | Daniil Baturin | |
and return False if the user interrupts the prompt with Ctrl-C |