Bug 12861 - Add --json option to ip2 functions
Summary: Add --json option to ip2 functions
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 20:56 UTC by bobpaul
Modified: 2020-05-05 20:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bobpaul 2020-05-05 20:56:33 UTC
Upstream ip2 supports the `--json` option to output to stdout as json rather than formatted text. This makes parsing the output a lot easier and more reliable in scripts.

Upstream syntax is with the `--json` option before the subcommand, such as:
`ip --json addr`, `ip --json route`, `ip --json link`, `ip --json tunnel`, `ip --json neigh`, `ip --json rule`.

It would be really nice to have this for use on embedded devices.