diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-10-30 17:43:53 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-10-30 17:43:53 +0100 |
| commit | b1a421fa8e2cfd45057e69ee7f5c3db9a7f3d922 (patch) | |
| tree | 5c4ac1cacba5b188a784d21c86f2c54f32fbce1d /src | |
| parent | 2c510ff2715400057cbfa49e8909f6c7c9e2ec4e (diff) | |
| download | vyos-1x-b1a421fa8e2cfd45057e69ee7f5c3db9a7f3d922.tar.gz vyos-1x-b1a421fa8e2cfd45057e69ee7f5c3db9a7f3d922.zip | |
ipsec: T9542: do not error on missing route table 220 in debug output
"show vpn debug" ended with "Error: ipv4: FIB table does not exist"
whenever strongSwan had not installed any route, as the kernel only
creates table 220 with its first route. The section now lists the
routes of table 220 when there are any and stays empty otherwise.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/vpn_ipsec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/vpn_ipsec.py b/src/op_mode/vpn_ipsec.py index 3c812db7b..dae8f837f 100755 --- a/src/op_mode/vpn_ipsec.py +++ b/src/op_mode/vpn_ipsec.py @@ -68,7 +68,8 @@ def debug_peer(peer, tunnel): "ip address", "ip rule show", "ip route | head -100", - "ip route show table 220" + # charon creates table 220 only with its first route + "ip route show table all | grep -w 'table 220'" ] for debug_cmd in debug_commands: # call() output bypasses our buffer, flush to keep the order |
