diff options
author | Brett Holman <brett.holman@canonical.com> | 2023-02-24 08:00:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 08:00:44 -0700 |
commit | 6100fda632f63605981636c0900e1e0b8b354979 (patch) | |
tree | dab05196ac0cc299acd0c672053e3506c0ade213 /cloudinit/netinfo.py | |
parent | 46fcd03187d70f405c748f7a6cfdb02ecb8c6ee7 (diff) | |
download | cloud-init-git-6100fda632f63605981636c0900e1e0b8b354979.tar.gz |
log: Add standardized deprecation tooling (SC-1312) (#2026)
- Add deprecation log level
- Add deprecation utilities for structured format and messaging
- Update existing deprecation log sites, add deprecated versions
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r-- | cloudinit/netinfo.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py index 5eeeb967..a3bca86e 100644 --- a/cloudinit/netinfo.py +++ b/cloudinit/netinfo.py @@ -94,11 +94,13 @@ def _netdev_info_iproute_json(ipaddr_json): return devs +@util.deprecate_call( + deprecated_version="22.1", + extra_message="Required by old iproute2 versions that don't " + "support ip json output. Consider upgrading to a more recent version.", +) def _netdev_info_iproute(ipaddr_out): """ - DEPRECATED: Only used on distros that don't support ip json output - Use _netdev_info_iproute_json() when possible. - @param ipaddr_out: Output string from 'ip addr show' command. @returns: A dict of device info keyed by network device name containing |