RadSec tests¶
make test-radsec runs python -m lab.test_radsec - FreeRADIUS collector checks, per-switch reachability, RadSec AAA, and collector TLS PQC handshakes (IPv4 and IPv6).
Wait times: AAA succeeds immediately when ready; transient failures allow 15 attempts, 2 s apart, for up to 28 s of retry delays per switch/address family (six probes). AAA command execution and the other checks add time. Each probe prints its budget before starting; see Wait times.
Policy: TLS 1.3 with PQC-hybrid group X25519MLKEM768 on the RADSEC ssl profile.
What is checked¶
FreeRADIUS container¶
| Check | Type | Method |
|---|---|---|
| RadSec listener on :2083 | [config] |
netstat -ltn in radius container |
OpenSSL offers X25519MLKEM768 |
[config] |
openssl list -tls-groups |
Each EOS switch (ceos1-both, ceos2-pqc, ceos3-qkd)¶
| Check | Type | Method |
|---|---|---|
| MGMT reachability | [live] |
ping vrf MGMT <radius-ip> repeat 3 (IPv4 + IPv6) |
| RadSec profile + config | [config] |
RADSEC ssl profile, tls ssl-profile RADSEC |
| Collector TLS PQC | [live / test-runner] |
openssl s_client to radius :2083 with switch client cert |
| RadSec AAA | [live] |
test aaa group RADIUS server … tls port 2083 vrf MGMT |
Pass criteria¶
- 0% packet loss to radius on both address families
- RadSec ssl profile valid with PQC-hybrid group
- Collector TLS negotiates
X25519MLKEM768 test aaareturns successfully authenticated
Manual reproduction¶
# Radius listener
docker exec arista-quantum-safe-radius netstat -ltn | grep 2083
# Switch -> radius ping
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
ping vrf MGMT 172.20.127.50 repeat 3
EOF
# RadSec AAA
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
test aaa group RADIUS server 172.20.127.50 tls port 2083 vrf MGMT
EOF
# Collector TLS PQC (switch client credentials)
docker exec arista-quantum-safe-test-runner sh -c \
'OPENSSL_CONF=/etc/probe/openssl-pqc.cnf \
openssl s_client -connect 172.20.127.50:2083 -tls1_3 \
-CAfile /etc/probe/certs/radsec-ca.pem \
-cert /etc/probe/certs/ceos1-both-client.pem \
-key /etc/probe/certs/ceos1-both-client.key \
-brief </dev/null 2>&1' \
| grep X25519MLKEM768
Configuration reference: RADIUS / RadSec service.
See Test suite overview for expected live KEX on EOS 4.37.0F.