NetVM: topology also shows host links and netns list
This commit is contained in:
@@ -12,3 +12,8 @@ for ns in $(ip netns list 2>/dev/null | awk '{print $1}' | grep '^warp-'); do
|
||||
done
|
||||
# host-side NAT rules for our subnets
|
||||
iptables -t nat -L POSTROUTING -n 2>/dev/null | grep '10.201\.' || echo "no netvm NAT rules on host"
|
||||
|
||||
echo "--- host links ---"
|
||||
ip link show 2>/dev/null | grep -E 'veth-|vpeer-|wg-' || echo "(no netvm links on host)"
|
||||
echo "--- all netns ---"
|
||||
ip netns list 2>/dev/null || echo "(none)"
|
||||
|
||||
Reference in New Issue
Block a user