Age | Commit message (Collapse) | Author |
|
The formatter methods are mostly `family` agnostic now.
|
|
|
|
The test `test_dhcp_hostsd_lease_sync` validates
DHCP server leases in sync with hostd records.
Since the DHCP server running in smoketest environment
might not have actual clients to lease IP addresses,
we simulate the lease creation and deletion using kea
helper functions (`kea_add_lease` and `kea_delete_lease`).
|
|
The helper script updates VyOS hostd records from
DHCP server leases. This ensures that hostd records
with the DHCP server leases are kept in sync with
VyOS hostd records right after the DHCP server is
started.
Note that `Restart` directive needs to be updated to
`on-failure` so that the service is restarted in case
of failure/timeout in interaction with hostd service.
|
|
Keep DHCP server leases in sync with vyos-hostd records
via helper script invoked with `ExecStartPost` directive
in kea-dhcp4-server.service.
The helper script updates VyOS hostd records from
DHCP server leases. This ensures that hostd records
with the DHCP server leases are kept in sync with
VyOS hostd records right after DHCP server is started.
This is similar to the capability exposed via kea hook
`libdhcp_run_script.so` which is invoked internally
by kea when a single lease changes state.
Since the kea hook is currently implemented for DHCPv4
only, this helper script is implemented for DHCPv4
only as well.
|
|
Add helpers:
- `kea_add_lease` to add a lease to the running kea server
- `kea_get_domain_from_subnet_id` to get the domain name
from subnet id
Also, enrich leases with domain name from subnet id
|
|
T6906: IPoE-server smoke test for start-session option
|
|
|
|
T7161: fix BGP IPv4/IPv6 unicast AFI "redistribute table" command
|
|
Re-use existing XML constraint added via commit 8f6246da6 ("xml: T7161: provide
re-usable building block for alternative routing tables") and add handy CLI
completion helper.
FRRouting supports redistribution of multiple non-main tables, thus make this
a multi node in addition, too.
|
|
|
|
|
|
|
|
T7076: Fix for script that validates ethernet interface
|
|
|
|
webproxy: T7057: Fixed 'domain-nocache' command
|
|
Fixed 'domain-nocache' command.
Added config generation for this command.
|
|
syslog: T6989: update default system configuration with new CLI syntax
|
|
|
|
T7145: updated team name for codeowners current branch
|
|
|
|
|
|
vyos.ifconfig: T5103: always stop the DHCP client process bevore changing VRF
|
|
T7145: updated codeowners list
|
|
Always stop the DHCP client process to clean up routes within the VRF where the
process was originally started. There is no need to add a condition to only
call the method if "address dhcp" was defined, as this is handled inside
set_dhcp(v6) by only stopping if the daemon is running.
DHCP client process restart will be handled later on once the interface is
moved to the new VRF.
|
|
Helper scripts should only work on physical interfaces not on individual
sub-interfaces. Moving e.g. a VLAN interface in/out a VRF will also trigger
this script which should be prohibited - bail out early
|
|
|
|
|
|
T6058: Fix popen command wrapper handling
|
|
Ensure `wrapper` is only prepended to `command` when it is non-empty
|
|
vyos.ifconfig: T5103: force dhclient restart on VRF change
|
|
|
|
smoketest: T2326: remove NHRP pylint W0611: unused import
|
|
wireguard: T4930: remove pylint W0611: unused import
|
|
An optional argument vrf_changed was added to the function signature but it
was not put to use. We only need to restart DHCP client on add_addr().
|
|
Previously the DHCPv6 client was restarted on any change to the interface,
including changes only to the interface description. Re-use pattern from IPv4
DHCP to only restart the DHCP client if necessary.
|
|
|
|
|
|
Moving an interface in, out or between VRFs will not re-install the received
default route. This is because the dhclient binary is not restarted in the new
VRF. Dhclient itself will report an error like: "receive_packet failed on
eth0.10: Network is down".
Take the return value of vyos.ifconfig.Interface().set_vrf() into account to
forcefully restart the DHCP client process and optain a proper lease.
|
|
syslog: T6989: convert old configuration format to "advanced"
|
|
Some systemd services are re-used over multiple configuration files. Keep a
single source of the real systemd names and only reference them by dictionary
keys.
|
|
|
|
|
|
|
|
Rsyslog supports individual VRFs per omfwd remote entry - so we should support
this, too.
|
|
vyconf: T6718: drop hybrid set/delete functions
|
|
T7076: Add script to validate ethernet interface
|
|
|
|
installer: T7102: download upgrade images to a random path in the root filesystem
|
|
filesystem
|