[svn] commit: r2623 - in /branches/trac289/src: bin/xfrin/xfrin.py.in bin/xfrin/xfrin.spec.pre.in lib/python/isc/notify/notify_out.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Aug 4 05:37:05 UTC 2010
Author: zhanglikun
Date: Wed Aug 4 05:37:05 2010
New Revision: 2623
Log:
Enable user to specify the zone class for command 'retransfer'.
Modified:
branches/trac289/src/bin/xfrin/xfrin.py.in
branches/trac289/src/bin/xfrin/xfrin.spec.pre.in
branches/trac289/src/lib/python/isc/notify/notify_out.py
Modified: branches/trac289/src/bin/xfrin/xfrin.py.in
==============================================================================
--- branches/trac289/src/bin/xfrin/xfrin.py.in (original)
+++ branches/trac289/src/bin/xfrin/xfrin.py.in Wed Aug 4 05:37:05 2010
@@ -470,7 +470,7 @@
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
Modified: branches/trac289/src/bin/xfrin/xfrin.spec.pre.in
==============================================================================
--- branches/trac289/src/bin/xfrin/xfrin.spec.pre.in (original)
+++ branches/trac289/src/bin/xfrin/xfrin.spec.pre.in Wed Aug 4 05:37:05 2010
@@ -19,6 +19,12 @@
"item_type": "string",
"item_optional": false,
"item_default": ""
+ },
+ {
+ "item_name": "zone_class",
+ "item_type": "string",
+ "item_optional": true,
+ "item_default": "IN"
},
{
"item_name": "master",
Modified: branches/trac289/src/lib/python/isc/notify/notify_out.py
==============================================================================
--- branches/trac289/src/lib/python/isc/notify/notify_out.py (original)
+++ branches/trac289/src/lib/python/isc/notify/notify_out.py Wed Aug 4 05:37:05 2010
@@ -109,7 +109,7 @@
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)
More information about the bind10-changes
mailing list