diff options
author | Martin Basti <mbasti@redhat.com> | 2014-06-30 11:58:46 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-07-03 10:32:08 +0200 |
commit | 33cf958b98dc2d80d17b3de1c145d403df4a3ba3 (patch) | |
tree | 4b57f36e73cdef8e1da1d10f914cbb9247b0963a /ipalib/messages.py | |
parent | 3b310d6b4f8063149d1abe823b64bc9796a97ab2 (diff) | |
download | freeipa-33cf958b98dc2d80d17b3de1c145d403df4a3ba3.tar.gz freeipa-33cf958b98dc2d80d17b3de1c145d403df4a3ba3.tar.xz freeipa-33cf958b98dc2d80d17b3de1c145d403df4a3ba3.zip |
Add warning about semantic change for zones
--forwarder have different semantic since
forward zones support.
Add warning if zone contains forwarders.
Ticket: https://fedorahosted.org/freeipa/ticket/3210#comment:16
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipalib/messages.py')
-rw-r--r-- | ipalib/messages.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ipalib/messages.py b/ipalib/messages.py index e5b76a526..3087cf7c9 100644 --- a/ipalib/messages.py +++ b/ipalib/messages.py @@ -135,6 +135,18 @@ class VersionMissing(PublicMessage): "guaranteed. Assuming server's API version, %(server_version)s") +class ForwardersWarning(PublicMessage): + """ + **13002** Used when (master) zone contains forwarders + """ + + errno = 13002 + type = 'warning' + format = _( + u"DNS forwarder semantics changed since IPA 4.0.\n" + u"You may want to use forward zones (dnsforwardzone-*) instead.\n" + u"For more details read the docs.") + def iter_messages(variables, base): """Return a tuple with all subclasses """ |