| Age | Commit message (Collapse) | Author |
|
remote: T9568: Do not send HTTP credentials to another host after a redirect
|
|
ospf: T9606: add "compatible" node for RFC1583 and RFC7474 options
|
|
T9615: extend pylint coverage
|
|
validation
FRR now makes strict RFC7474 sequence number validation for OSPF
cryptographic authentication optional. It is on by default and only the
"no compatible rfc7474" form is shown.
The new CLI node "compatible rfc7474" enables strict validation. When it is
not set, "no compatible rfc7474" is rendered. Migration does not set it, so
the previous behaviour of non-strict sequence number validation is kept on
upgraded routers. Users must explicitly enable strict validation.
|
|
The RFC1583 option sat under "parameters" although FRR groups it with its
other "compatible" commands. It now lives under "compatible rfc1583" for the
default and VRF instances. Migration moves an existing setting and drops a
"parameters" node left empty by the move.
|
|
Error checks only covered parts of the tree, so broken imports in helpers,
utils, validators and Python subpackages went unnoticed. Unused imports
were checked in a separate run.
Both checks now run in a single pass over every Python file, including
scripts without a .py extension. Modules missing from the build
environment, generated on install or imported via sys.path changes are
ignored globally, as are protoc generated files.
|
|
No functional change, pylint reported a used-before-assignment as it
does not know the other branch exits.
|
|
|
|
The show_commit_data and test_commit wrappers were removed by commit
09cb7801d790 ("T7272: drop test functions"), but the helper scripts using
them were left behind and failed on import.
|
|
Two tests shared one name, so the is_ip_network test was replaced by the
compare_netmask test and never ran.
|
|
Any exception without an errno attribute raised an AttributeError inside
the handler instead of being logged. EAGAIN is now caught on its own and
everything else is logged.
|
|
The host name and domain name were passed to the client as a single
dict, so --set-host-name always failed with a TypeError. Both are now
passed as separate arguments.
|
|
T9446: start commit-confirm timer after commit completes in the case 'reload'
|
|
load-balancing: T9466: Fix listen-address check for VRF, link-local and new IPv6 addresses
|
|
telegraf: T9329: Add PKI based TLS options for InfluxDB output
|
|
dhcpv6-client: T6301: do not block commits on an unanswered Release
|
|
Add a reusable `tls` node for Telegraf outputs and use it for InfluxDB:
`ca-certificate`, `certificate`, `server-name` and `insecure`.
Referenced PKI objects are written to `/run/telegraf/certs`.
|
|
T9607: Synchronize the list of branches across all scripts
|
|
|
|
T9590: fix order of set perms/ownership and first write in utils write_file
|
|
telegraf: T9601: Pass Azure Data Explorer credentials via the environment file
|
|
debian: T9587: restore SUID bit on vyos-op-run
|
|
The Azure client ID, secret and tenant ID were only set in the commit
process environment, so they never reached the telegraf service and the
Azure Data Explorer output could not authenticate. The secret also stayed
in the configuration daemon after the commit.
The credentials are now written to the same root-only environment file
as the InfluxDB token, and changing them restarts telegraf.
|
|
|
|
IPv6 addresses
The listen-address check ignored the HAProxy VRF. An address on an
interface in that VRF was reported as not assigned. With "vrf default"
the port check always failed.
Changing the VRF only reloaded HAProxy, so it kept running in the old
VRF.
HAProxy cannot parse a link-local address with its "%interface" scope.
The commit passed, but HAProxy failed to load the config.
A new IPv6 address cannot be used until duplicate address detection
finishes. Adding it together with the listen-address, as on every boot,
was refused as "port used by another service".
Now:
- addresses and ports are checked inside the HAProxy VRF, and "default"
means no VRF
- HAProxy restarts when its VRF changes
- a link-local address is passed to HAProxy as "bind <address> interface
<interface>"; one without an interface is refused
- the check waits until a new IPv6 address can be used
|
|
wwan: T9388: apply a static bearer's address/gateway/DNS directly instead of DHCP(v6)/SLAAC
|
|
Every interface script loads the WWAN interface class, but only polling
the bearer of a modem needs wait_for(). Import it there, as the WWAN
helpers already do.
|
|
The configuration dictionary helpers are imported by nearly every
configuration script, but only the collection of WWAN default routes
needs the WWAN helpers and the XML default values. Import them there
instead of at module level.
|
|
The WWAN helpers imported tempfile at module level, which loads shutil,
random and the bz2/lzma/zlib modules. As these helpers are imported by
the configuration dictionary helpers, every process importing those paid
about 2 ms for it, although only writing the bearer state needs it.
|
|
The special character check for operator-level users allowed any
whitespace, including newlines. Tag node values are substituted into a
shell command which runs as root, so an operator could append arbitrary
commands, e.g. "vyos-op-run show interfaces ethernet $'eth0\nid'".
Only plain spaces are accepted now, everything else is rejected before
privileges are raised. The operator smoketest covers this case.
|
|
No smoketest logged in as an operator-level user, so losing the SUID bit
on the op-mode runner went unnoticed.
Add a test which checks the SUID bit, then logs in via SSH as an operator
and verifies that commands in the command-policy return the same output
as for an admin, while commands outside of it are rejected.
|
|
When vyos-utils was merged into vyos-1x, the post-install step that sets
the SUID bit on vyos-op-run was not carried over. Operator-level users
have no sudo rights and rely on that bit for the runner to switch to
root after the command-policy check, so every op-mode command they ran
silently produced no output.
The vyos-1x post-install script now sets the SUID bit again.
|
|
telegraf: T9569: Pass InfluxDB token via a root-only environment file
|
|
T9582: Fix OpenConnect RADIUS accounting server missing from radius_servers
|
|
http-api: T9588: Keep config strings out of world-readable /tmp
|
|
nhrp: T9585: Fix verify() never validating NHRP tunnels
|
|
utils: T9322: validate the address is_intf_addr_assigned() is given
|
|
The lookup for an address on all interfaces carried a copy of the zone
index and VRF filtering that already exists in the lookup returning the
matching interfaces. It now delegates to it, so the two cannot drift.
The per-interface address match is written as a single condition, the
comments are trimmed, and the docstrings state that anything but a
single address raises ValueError instead of being reported as not
assigned.
The sflow zone index smoketest removes the dummy interface it creates,
and the unit tests drop a stale task reference and a duplicate import.
|
|
indexes
The helper that tells whether an address is assigned to an interface
accepted ranges and addresses with a zone index. A range ended in a
traceback. A zone index was ignored, so an address on the loopback
interface was reported as assigned to the interface named in the zone.
The helper now rejects everything that is not a single address, a zone
index included. The functions that look for an address on all
interfaces use the zone to pick the one interface to check, so a zone
that names an interface which does not hold the address is no longer
accepted. The command that lists the addresses is passed as a list, so
the interface name and the namespace do not reach a shell.
Unit tests and a smoketest cover the cases.
|
|
Import default_value() at module level instead of once per WWAN
interface, and share the dhcp-options path of both route options so the
lines stay within the line length. No functional change.
|
|
Which address families an interface takes from its bearer was derived
from "address dhcp", "address dhcpv6" and "ipv6 address autoconf" in
three places: the connect options, the FRR default routes and the
re-apply after a re-dial. Share a single helper so they cannot drift
apart. No functional change.
|
|
The address of a static bearer was added and removed with hand-written
ip commands, duplicating the assigned check, the IPv4 broadcast and the
address cache of the generic interface code. Use add_addr() and
del_addr() instead. No functional change.
|
|
The pending bearer re-applies are updated by the dial and retry worker
threads while the reconcile loop drops interfaces which are gone,
disabled or disconnected. A worker finishing its attempt afterwards
wrote the entry back, so such an interface was tried once more.
All access now holds the WWAN lock, and a worker only updates an entry
which is still pending.
|
|
"dhcp-options no-default-route" only suppressed the IPv4 default route
of a static bearer, and only with "address dhcp" configured, as the
option is dropped from the interface config otherwise. The IPv6 route
was always installed.
The option now suppresses both routes, as it does for PPPoE, regardless
of which address family is configured.
|
|
An interface with "address dhcp" contributes a DHCP default route next
to the one of its static bearer. The DHCP one is built from the router
of the last lease event, which is only cleared by a STOP event. A client
which ended up failed never sends one, so a router from an earlier lease
added a second default route towards a stale gateway.
The record of the last lease event is now removed when a static bearer
takes over IPv4.
|
|
The client was only stopped after asking systemd whether it was running
at all. Stopping an inactive unit does nothing, so the query is dropped.
This also removes the configuration a client left behind when it ended
up failed, which the query skipped.
|
|
After a re-dial, a configured family the connected bearer had no
settings for was reported as incomplete. On a network without IPv6 this
was retried on the next ten reconcile passes, restarting the DHCPv6
client or SLAAC each time, and then logged as given up - on every
re-dial.
A family the connected bearer does not supply is now settled with the
configured fallback. Only a missing bearer or a static one without an
address is retried.
|
|
The bearer settings of a family were polled for up to five seconds
whenever they were missing. Without a connected bearer, or on a network
that only supplies one family, they never arrive, so every such commit
waited out the timeout once per configured family.
Only wait while the connected bearer has no settings for either family
yet.
|
|
Keep the polled bearer and method in plain variables via nonlocal, as
the modem index lookup already does, instead of a result dict. No
functional change.
|
|
Every bearer method other than dhcp was handled as static, including
unknown. ModemManager reports the address and prefix of such a bearer as
"--", which was then installed as "--/--" and aborted the commit.
Only a static bearer is applied now, any other method falls back to the
DHCP(v6) client or SLAAC, and a placeholder address or prefix counts as
missing.
|