Ticket: https://fedorahosted.org/freeipa/ticket/3414
Patch attached.

--
Martin Basti

From 7504e4eb46698f0d260e2e4a0582d3bef9d40696 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Fri, 19 Sep 2014 16:05:40 +0200
Subject: [PATCH 1/2] DNS: remove --class option

This option haven't been working, it is time to remove it.

Ticket: https://fedorahosted.org/freeipa/ticket/3414
---
 ipalib/plugins/dns.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 03ff77cbb0a40f5c7345f533280b33302e0aefd2..ebab1e99bedcd61d9c895868ab75034c67ca315f 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -294,9 +294,6 @@ _zone_top_record_types = ('NS', 'MX', 'LOC', )
 # attributes derived from record types
 _record_attributes = [str('%srecord' % t.lower()) for t in _record_types]
 
-# supported DNS classes, IN = internet, rest is almost never used
-_record_classes = (u'IN', u'CS', u'CH', u'HS')
-
 # IN record class
 _IN = dns.rdataclass.IN
 
@@ -2151,11 +2148,10 @@ class dnszone(DNSZoneBase):
             minvalue=0,
             maxvalue=2147483647, # see RFC 2181
         ),
-        StrEnum('dnsclass?',
+        DeprecatedParam('dnsclass?',
             cli_name='class',
             label=_('SOA class'),
             doc=_('SOA record class'),
-            values=_record_classes,
         ),
         Str('idnsupdatepolicy?',
             cli_name='update_policy',
@@ -2580,11 +2576,10 @@ class dnsrecord(LDAPObject):
             label=_('Time to live'),
             doc=_('Time to live'),
         ),
-        StrEnum('dnsclass?',
+        DeprecatedParam('dnsclass?',
             cli_name='class',
             label=_('Class'),
             doc=_('DNS class'),
-            values=_record_classes,
         ),
     ) + _dns_record_options
 
-- 
1.8.3.1

From f724d27eac489f47daabb7c53eacb355522b74c6 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Fri, 19 Sep 2014 16:07:40 +0200
Subject: [PATCH 2/2] WebUI: DNS: remove --class option

Ticket: https://fedorahosted.org/freeipa/ticket/3414
---
 install/ui/src/freeipa/dns.js | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js
index a1b881e1ee1bbaa67cd6d86e64771f4f10177860..b1bc4d3fd4bfa1fd30e1cb717010f103e7b1850e 100644
--- a/install/ui/src/freeipa/dns.js
+++ b/install/ui/src/freeipa/dns.js
@@ -151,13 +151,6 @@ return {
                     'idnssoaminimum',
                     'dnsttl',
                     {
-                        $type: 'combobox',
-                        name: 'dnsclass',
-                        options: [
-                            'IN', 'CS', 'CH', 'HS'
-                        ]
-                    },
-                    {
                         $type: 'radio',
                         name: 'idnsallowdynupdate',
                         options: [
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to