Commit 4f89464c authored by Likun Zhang's avatar Likun Zhang
Browse files

Enable user to specify the zone class for command 'retransfer'.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 1f7e5114
......@@ -470,7 +470,7 @@ a separate method for the convenience of unit tests.
if not zone_name:
raise XfrinException('zone name should be provided')
rrclass = args.get('rrclass')
rrclass = args.get('zone_class')
if not rrclass:
# The default RR class is IN. We should fix this so that
# the class is always passed in the command arg (where we specify
......@@ -20,6 +20,12 @@
"item_optional": false,
"item_default": ""
"item_name": "zone_class",
"item_type": "string",
"item_optional": true,
"item_default": "IN"
"item_name": "master",
"item_type": "string",
......@@ -109,7 +109,7 @@ class NotifyOut:
return rr[7].strip()
def _get_notify_slaves_from_ns(self, zone_name):
'''The simplest way to get the address of slaves, but now correct.
'''The simplest way to get the address of slaves, but not correct.
TODO. the function should be provided by one library.'''
ns_rrset = sqlite3_ds.get_zone_rrset(zone_name, zone_name, 'NS', self._db_file)
soa_rrset = sqlite3_ds.get_zone_rrset(zone_name, zone_name, 'SOA', self._db_file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment