This is basic info that is present in the GUI that I’ve been wishing to have exposed via the RPC and CLI without needing a bash workaround or script. For human users it would also be useful to have it in -getinfo.
bitcoin-cli getnetworkinfo
0  "connections": 15,
1  "connections_in": 6,
2  "connections_out": 9,
bitcoin-cli -getinfo
0  "connections": {
1    "in": 6,
2    "out": 9,
3    "total": 15
4  },
Update the tests, RPC help, and release notes for the changes. Also fixup the getnettotals timemillis help while touching rpc/net.cpp.
Reviewers can manually test this PR by building from source, launching bitcoind, and then running bitcoin-cli -getinfo, bitcoin-cli getnetworkinfo, bitcoin-cli help getnetworkinfo, and bitcoin-cli help getnettotals (for the UNIX epoch time change).