|
|
403b09 |
From a7c1e25d3d1c065d0a56e63741c8e5b05ee880a6 Mon Sep 17 00:00:00 2001
|
|
|
403b09 |
From: David Kupka <dkupka@redhat.com>
|
|
|
403b09 |
Date: Fri, 15 Jul 2016 11:55:19 +0200
|
|
|
403b09 |
Subject: [PATCH] help: Add dnsserver commands to help topic 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
https://fedorahosted.org/freeipa/ticket/6069
|
|
|
403b09 |
|
|
|
403b09 |
Reviewed-By: Petr Spacek <pspacek@redhat.com>
|
|
|
403b09 |
---
|
|
|
403b09 |
ipaserver/plugins/dnsserver.py | 7 +++++++
|
|
|
403b09 |
1 file changed, 7 insertions(+)
|
|
|
403b09 |
|
|
|
403b09 |
diff --git a/ipaserver/plugins/dnsserver.py b/ipaserver/plugins/dnsserver.py
|
|
|
403b09 |
index beddec04230d810479fff9612721cf12260bbb3a..d635722a6b6aaea942d49456a04f5d0480d344c9 100644
|
|
|
403b09 |
--- a/ipaserver/plugins/dnsserver.py
|
|
|
403b09 |
+++ b/ipaserver/plugins/dnsserver.py
|
|
|
403b09 |
@@ -48,6 +48,8 @@ EXAMPLES:
|
|
|
403b09 |
|
|
|
403b09 |
register = Registry()
|
|
|
403b09 |
|
|
|
403b09 |
+topic = None
|
|
|
403b09 |
+
|
|
|
403b09 |
dnsserver_object_class = ['top', 'idnsServerConfigObject']
|
|
|
403b09 |
|
|
|
403b09 |
@register()
|
|
|
403b09 |
@@ -149,6 +151,7 @@ class dnsserver(LDAPObject):
|
|
|
403b09 |
@register()
|
|
|
403b09 |
class dnsserver_mod(LDAPUpdate):
|
|
|
403b09 |
__doc__ = _('Modify DNS server configuration')
|
|
|
403b09 |
+ topic = 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
msg_summary = _('Modified DNS server "%(value)s"')
|
|
|
403b09 |
|
|
|
403b09 |
@@ -156,6 +159,7 @@ class dnsserver_mod(LDAPUpdate):
|
|
|
403b09 |
@register()
|
|
|
403b09 |
class dnsserver_find(LDAPSearch):
|
|
|
403b09 |
__doc__ = _('Search for DNS servers.')
|
|
|
403b09 |
+ topic = 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
msg_summary = ngettext(
|
|
|
403b09 |
'%(count)d DNS server matched',
|
|
|
403b09 |
@@ -166,6 +170,7 @@ class dnsserver_find(LDAPSearch):
|
|
|
403b09 |
@register()
|
|
|
403b09 |
class dnsserver_show(LDAPRetrieve):
|
|
|
403b09 |
__doc__=_('Display configuration of a DNS server.')
|
|
|
403b09 |
+ topic = 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
|
|
|
403b09 |
@register()
|
|
|
403b09 |
@@ -175,6 +180,7 @@ class dnsserver_add(LDAPCreate, Local):
|
|
|
403b09 |
Be careful in future this will be transformed to public API call
|
|
|
403b09 |
"""
|
|
|
403b09 |
__doc__ = _('Add a new DNS server.')
|
|
|
403b09 |
+ topic = 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
msg_summary = _('Added new DNS server "%(value)s"')
|
|
|
403b09 |
|
|
|
403b09 |
@@ -186,5 +192,6 @@ class dnsserver_del(LDAPDelete, Local):
|
|
|
403b09 |
Be careful in future this will be transformed to public API call
|
|
|
403b09 |
"""
|
|
|
403b09 |
__doc__ = _('Delete a DNS server')
|
|
|
403b09 |
+ topic = 'dns'
|
|
|
403b09 |
|
|
|
403b09 |
msg_summary = _('Deleted DNS server "%(value)s"')
|
|
|
403b09 |
--
|
|
|
403b09 |
2.7.4
|
|
|
403b09 |
|