20 ms·
ip has a --json flag: https://github.com/CumulusNetworks/iproute2/commit/5df607725928d532a3b7e5095c04e943b2c3ce7f https://github.com/CumulusNetworks/iproute2/co
by lclarkmichalek 8y ago
ip has a --json flag: https://github.com/CumulusNetworks/iproute2/commit/5df607725928d532a3b7e5095c04e943b2c3ce7f https://github.com/CumulusNetworks/iproute2/commit/5df607725...
- helb 8y agoHmm, not for everything, apparently. It works with "-json addr" or "-json link", but not with eg. "-json route" or most other things i've tried.
- jwilk 8y agoFor the avoidance of doubt, this is not the official iproute2 repo. This is the official one: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git https://git.kernel.org/pub/scm/network/iproute2/iproute2.git