USER GUIDE
CLI: list / show
Purpose¶
Inspect interfaces, routes, policy rules, and registered hook scripts — the same objects netevd tracks for hook dispatch and automatic policy routing.
When to use it¶
- Multi-homed hosts: confirm per-interface routing tables after
routing.policy_ruleschanges - Debugging: compare
netevd list ruleswithip rule list - Inventory: see which hook scripts netevd knows about before a rollout
How to get there¶
- Commands:
netevd list …,netevd show … - Default API:
http://127.0.0.1:9090(--endpointfor remote hosts) - Config reference:
/etc/netevd/netevd.yaml
Operate from CLI¶
- List tracked interfaces:
netevd list interfaces
netevd list interfaces -f json
- List kernel routes netevd is aware of:
netevd list routes
- List policy routing rules (multi-homed verification):
netevd list rules
ip rule list
ip route show table $((200 + $(cat /sys/class/net/eth1/ifindex)))
- List hook scripts discovered under
/etc/netevd/*.d/:
netevd list scripts
- Drill into one interface:
netevd show interface eth0
netevd show interface eth0 -f yaml --endpoint http://<host>:9090
-
Empty / fail: Lists empty but links exist → widen
monitoring.interfaces(empty = all) or remove an overly broadfiltersignore rule; API errors → see CLI: status. -
Success: Interface count matches expectations;
list rulesshowsfrom/topairs for each address on policy-routed interfaces.