summaryrefslogtreecommitdiff
path: root/tests/unittests/helpers.py
diff options
context:
space:
mode:
authorJames Falcon <james.falcon@canonical.com>2022-01-26 19:40:06 -0600
committerGitHub <noreply@github.com>2022-01-26 19:40:06 -0600
commit223b23e2c428aff6c1e61f49d8e2edde77801a12 (patch)
treeb9642e2a00c55202809fec16874f44cb635f2ed8 /tests/unittests/helpers.py
parent0d364a29d2fe233fa31bcd6d129b1ca61be60e20 (diff)
downloadvyos-cloud-init-223b23e2c428aff6c1e61f49d8e2edde77801a12.tar.gz
vyos-cloud-init-223b23e2c428aff6c1e61f49d8e2edde77801a12.zip
Add json parsing of ip addr show (SC-723) (#1210)
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.
Diffstat (limited to 'tests/unittests/helpers.py')
0 files changed, 0 insertions, 0 deletions