Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-26 | Add json parsing of ip addr show (SC-723) (#1210) | James Falcon | |
When obtaining information from "ip addr", default to using "ip --json addr" rather than using regex to parse "ip addr show" as json is machine readable as less prone to error. Deprecate but leave fallback to use "ip addr" for older iproute2 tooling which does not support --json param. Fix regex parsing of "ip addr" to support peer addresses and metrics. | |||
2018-04-18 | net: Depend on iproute2's ip instead of net-tools ifconfig or route | Chad Smith | |
The net-tools package is deprecated and will eventually be dropped. Use "ip route", "link" or "address" instead of "ifconfig" or "route" calls. Cloud-init can now run in an environment that no longer has net-tools. This affects the network and route printing emitted to cloud-config-output.log as well as the cc_disable_ec2_metadata module. Additional changes: - separate readResource and resourceLocation into standalone test functions - Fix ipv4 address rows to report scopes represented by ip addr show - Formatted route/address ouput now handles multiple ipv4 and ipv6 addresses on a single interface Co-authored-by: James Hogarth <james.hogarth@gmail.com> Co-authored-by: Robert Schweikert <rjschwei@suse.com> |