Browse Source

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

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac289@2623 e5f2f494-b856-4b98-b285-d166d9295462
Likun Zhang 14 years ago
parent
commit
4f89464cbe

+ 1 - 1
src/bin/xfrin/xfrin.py.in

@@ -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

+ 6 - 0
src/bin/xfrin/xfrin.spec.pre.in

@@ -21,6 +21,12 @@
             "item_default": ""
           },
           {
+            "item_name": "zone_class",
+            "item_type": "string",
+            "item_optional": true,
+            "item_default": "IN"
+          },
+          {
             "item_name": "master",
             "item_type": "string",
             "item_optional": false,

+ 1 - 1
src/lib/python/isc/notify/notify_out.py

@@ -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)