| Age | Commit message (Collapse) | Author |
|
T7668: bail out early in get_cli_kernel_options() if nothing is to do
|
|
Commit a99ca6d11 ("op-mode: T7403: add option for forcefully removing a
container image") did not account for the case where a single image ID is
passed as a string. This led to incorrect behavior during iteration.
Without converting the string to a list, the code iterates over individual
characters of the image ID rather than treating it as a single item. As a
result, the system attempts to delete non-existent container images based
on these characters.
|
|
serial: T7484: treat unavailable serial console devices as non-fatal
|
|
op-mode: T7403: add an option to forcefully remove a container image
|
|
T7651: VPP use pid not ppid as default in vpp-failure-handler.service script
|
|
If there is no Kernel option to pass, there is no need to run the code to
completion. Bail out early.
|
|
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.
|
|
A subsequent call to restart_login_consoles() will always call "systemctl
daemon-reload" and thus we can spare one call.
|
|
If we do not have the system options kernel the update fails
Change order for variables `k_cpu_opts` and `k_memory_opts`
If we do not have kernel_options set empty dictionary as
NoneType object has no attribue `get`
```
>>> kernel_options=None
>>> kernel_options.get('cpu', {})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get'
>>>
>>>
>>> kernel_options={}
>>> kernel_options.get('cpu', {})
{}
>>>
```
|
|
If you have multiple images (tags) loaded for a container which point to the
exact same hash - you can only forcefully delete them.
vyos@vyos:~$ delete container image 70dc5806
Error: unable to delete image "70dc5806" by ID with more than one tag
([registry.io/foo/bar:v1.0 registry.io/foo/bar:v1.0.1]):
please force removal
In additon an image that is still beeing used can not be removed from the
system as this would cause infinite container restarts.
vyos@vyos:~$ delete container image all force
Cannot delete image "d205499ae8bb" because it is currently being used by
container "3b290f90e83d"!
|
|
|
|
The reset_section.py script is used in a limited case for both (1)
recovery from an apply error in a config mode script and (2) recovery by
a service crash in a failure handler service. In the latter case, the
default pid must be os.getpid, not os.getppid, so as not to be called by
pid 1.
|
|
T7628: Fix non-TPM backed config encryption
|
|
qat: T7662: add PCI ID range for Intel C62x virtual function devices
|
|
|
|
In case when there is no local/remote prefix configured in a tunnel settings,
a protocol configured for such tunnel is ignored.
The correct way to generate the configuration is to set the prefix
to `dynamic` if it was not set. The correct config for the described case is:
```
local_ts = dynamic[gre/]
remote_ts = dynamic[gre/]
```
|
|
T7649: Fix use hyphens instead of underscores for kernel options
|
|
The ConfigTree for operation mode uses hyphens instaed of
underscores.
Fix kernel options during image upgrade.
|
|
|
|
T7649: Add missed system kernel options for image installer
|
|
Running pylint --errors-only ...
************* Module interfaces
src/op_mode/interfaces.py:42:54: E1101: Instance of '_IO' has no 'fileno' member (no-member)
************* Module show_techsupport_report
src/op_mode/show_techsupport_report.py:62:50: E1101: Instance of '_IO' has no 'fileno' member (no-member)
|
|
T7489: Fix output state of ipsec passthrough child
|
|
Add missed system kernel options to the image_installer do not
lose configured kernel options per an image upgrade.
|
|
Show state of passthrough tunnels as always up.
Passthrough children of connection have PASS mode but have no
sa and are not shown in vici list_sas.
Fix by passing mode from vici list_connections to _get_child_sa_state
and always return 'up' for child with PASS mode.
|
|
|
|
|
|
|
|
|
|
Remove duplicate function definition vyos.utils.file.chown which was also
provided by vyos.utils.permission.chown.
|
|
************* Module storage
src/op_mode/storage.py:32:11: E0602: Undefined variable '_get_system_storage' (undefined-variable)
src/op_mode/storage.py:52:11: E0602: Undefined variable 'output' (undefined-variable)
|
|
************* Module pki
src/op_mode/pki.py:459:8: E1128: Assigning result of a function call, where
the function returns None (assignment-from-none)
|
|
|
|
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.
|
|
|
|
Fix errors introduced by refactoring for modprobe/rmmod jool module.
|
|
T7625: load-balancing: prune limit key if not configured
|
|
|
|
|
|
|
|
|
|
|
|
ipsec: T7545: Fix show vpn debug peer
|
|
|
|
T7499: update config merge tools
|
|
Fix re for searching of peers in /etc/swanctl/swanctl.conf
```
search = rf'^[\s]*(peer_{peer}_(tunnel_[\d]+|vti)).*'
```
Changed to
```
search = rf'^[\s]*({peer}-(tunnel-[\d]+|vti))[\s]*{{'
```
Added message
```
print(f'\n### {command} ###')
```
so that output is not empty when `/usr/sbin/ipsec statusall`
shows nothing
|
|
|
|
|
|
|
|
|
|
|