diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-07 19:59:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 19:59:14 +0200 |
commit | 25d65249bd81f6405dcf6b6b94bb4ea23436d532 (patch) | |
tree | f0598ddbbeeade4b6b5411a03f1e8f123d4eb0f0 /python/vyos/base.py | |
parent | 7bd5a1c76ed37b5c65622c730db827f90262941f (diff) | |
parent | ed976b809d2ae330f8bfa575339a14b42121e8b8 (diff) | |
download | vyos-1x-25d65249bd81f6405dcf6b6b94bb4ea23436d532.tar.gz vyos-1x-25d65249bd81f6405dcf6b6b94bb4ea23436d532.zip |
Merge pull request #1276 from c-po/t4346-deprecate-ipv6-disable
T4346 Deprecate "system ipv6 disable" option to disable address family within OS kernel (equuleus)
Diffstat (limited to 'python/vyos/base.py')
-rw-r--r-- | python/vyos/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/base.py b/python/vyos/base.py index c78045548..fd22eaccd 100644 --- a/python/vyos/base.py +++ b/python/vyos/base.py @@ -15,6 +15,12 @@ from textwrap import fill +class DeprecationWarning(): + def __init__(self, message): + # Reformat the message and trim it to 72 characters in length + message = fill(message, width=72) + print(f'\nDEPRECATION WARNING: {message}\n') + class ConfigError(Exception): def __init__(self, message): # Reformat the message and trim it to 72 characters in length |