BIND 10 master, updated. efb5fff4c2069dd61c221576ad5438a19616ff48 Fix the notification command sent to xfrout by ddns
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jun 20 06:30:29 UTC 2012
The branch, master has been updated
via efb5fff4c2069dd61c221576ad5438a19616ff48 (commit)
from 380c6b2774d10e0e08f60177c390a7692e1130de (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit efb5fff4c2069dd61c221576ad5438a19616ff48
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Jun 20 11:53:54 2012 +0530
Fix the notification command sent to xfrout by ddns
-----------------------------------------------------------------------
Summary of changes:
src/bin/ddns/ddns.py.in | 3 +--
src/bin/ddns/tests/ddns_test.py | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/ddns/ddns.py.in b/src/bin/ddns/ddns.py.in
index cc5b2ff..70acf72 100755
--- a/src/bin/ddns/ddns.py.in
+++ b/src/bin/ddns/ddns.py.in
@@ -29,7 +29,6 @@ from isc.config.module_spec import ModuleSpecError
from isc.cc import SessionError, SessionTimeout, ProtocolError
import isc.util.process
import isc.util.cio.socketsession
-from isc.notify.notify_out import ZONE_NEW_DATA_READY_CMD
import isc.server_common.tsig_keyring
from isc.server_common.dns_tcp import DNSTCPContext
from isc.datasrc import DataSourceClient
@@ -543,7 +542,7 @@ class DDNSServer:
def __notify_xfrout(self, zname, zclass):
'''Notify xfrout of the update.'''
param = {'zone_name': zname.to_text(), 'zone_class': zclass.to_text()}
- msg = create_command(ZONE_NEW_DATA_READY_CMD, param)
+ msg = create_command('notify', param)
self.__notify_update(XFROUT_MODULE_NAME, msg, zname, zclass)
def __notify_update(self, modname, msg, zname, zclass):
diff --git a/src/bin/ddns/tests/ddns_test.py b/src/bin/ddns/tests/ddns_test.py
index b0e2a66..3343031 100755
--- a/src/bin/ddns/tests/ddns_test.py
+++ b/src/bin/ddns/tests/ddns_test.py
@@ -26,7 +26,6 @@ from isc.config.config_data import ConfigData
from isc.config.ccsession import create_answer, ModuleCCSessionError
from isc.config.module_spec import ModuleSpecError
from isc.server_common.dns_tcp import DNSTCPContext
-from isc.notify import notify_out
import ddns
import errno
import os
@@ -1171,7 +1170,7 @@ class TestDDNSSession(unittest.TestCase):
sent_msg, sent_group = self.__cc_session._sent_msg[msg_cnt]
sent_cmd = sent_msg['command']
self.assertEqual('Xfrout', sent_group)
- self.assertEqual(notify_out.ZONE_NEW_DATA_READY_CMD, sent_cmd[0])
+ self.assertEqual('notify', sent_cmd[0])
self.assertEqual(2, len(sent_cmd[1]))
self.assertEqual(TEST_ZONE_NAME.to_text(), sent_cmd[1]['zone_name'])
self.assertEqual(TEST_RRCLASS.to_text(), sent_cmd[1]['zone_class'])
More information about the bind10-changes
mailing list