[svn] commit: r1938 - /branches/feng-authnotify/src/bin/xfrin/xfrin.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Wed May 26 12:20:01 UTC 2010


Author: zhanglikun
Date: Wed May 26 12:20:00 2010
New Revision: 1938

Log:
Add the notify processing code to xfrin. Now when auth server receive notify message, notify source information(zone name and master address) will send to xfrin by cc-channel, then axfr will triggered.(Anyway, this is the temp implementation for notify-in. Actually the notify mesage should be sent to Zone Manager, Zone Manager needs do SOA query, by comparing SOA serial, then decide whether to trigger axfr/ixfr) 

Modified:
    branches/feng-authnotify/src/bin/xfrin/xfrin.py.in

Modified: branches/feng-authnotify/src/bin/xfrin/xfrin.py.in
==============================================================================
--- branches/feng-authnotify/src/bin/xfrin/xfrin.py.in (original)
+++ branches/feng-authnotify/src/bin/xfrin/xfrin.py.in Wed May 26 12:20:00 2010
@@ -378,6 +378,14 @@
                 ret = self.xfrin_start(zone_name, db_file, master, port)
                 answer = create_answer(ret[0], ret[1])
 
+            elif cmd == 'notify':
+                # This is the temp implementation for notify
+                # actually the notfiy command should be sent to 
+                # Zone Manager module.
+                db_file = '@@LOCALSTATEDIR@@/@PACKAGE@/zone.sqlite3'
+                ret = self.xfrin_start(args['zone_name'], db_file, args['master_ip'], port = 53)
+                answer = create_answer(ret[0], ret[1])
+
         except XfrinException as err:
             answer = create_answer(1, str(err))
 




More information about the bind10-changes mailing list