Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
cb8f6b5e
Commit
cb8f6b5e
authored
Jun 15, 2012
by
Mukund Sivaraman
Browse files
[2023] Also move ZONE_XFRIN_FAILED to a single module
parent
0c0107ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/xfrin/xfrin.py.in
View file @
cb8f6b5e
...
...
@@ -71,7 +71,6 @@ AUTH_MODULE_NAME = 'Auth'
XFROUT_MODULE_NAME = 'Xfrout'
ZONE_MANAGER_MODULE_NAME = 'Zonemgr'
REFRESH_FROM_ZONEMGR = 'refresh_from_zonemgr'
ZONE_XFRIN_FAILED = 'zone_xfrin_failed'
# Constants for debug levels.
DBG_XFRIN_TRACE = logger.DBGLVL_TRACE_BASIC
...
...
@@ -1580,7 +1579,7 @@ class Xfrin:
logger.error(XFRIN_MSGQ_SEND_ERROR, XFROUT_MODULE_NAME, ZONE_MANAGER_MODULE_NAME)
else:
msg = create_command(ZONE_XFRIN_FAILED, param)
msg = create_command(
notify_out.
ZONE_XFRIN_FAILED, param)
# catch the exception, in case msgq has been killed.
try:
seq = self._send_cc_session.group_sendmsg(msg, ZONE_MANAGER_MODULE_NAME)
...
...
src/bin/zonemgr/zonemgr.py.in
View file @
cb8f6b5e
...
...
@@ -79,7 +79,6 @@ XFRIN_MODULE_NAME = 'Xfrin'
AUTH_MODULE_NAME = 'Auth'
# define command name
ZONE_XFRIN_FAILED_COMMAND = 'zone_xfrin_failed'
ZONE_REFRESH_COMMAND = 'refresh_from_zonemgr'
ZONE_NOTIFY_COMMAND = 'notify'
...
...
@@ -621,7 +620,7 @@ class Zonemgr:
def command_handler(self, command, args):
"""Handle command receivd from command channel.
ZONE_NOTIFY_COMMAND is issued by Auth process;
ZONE_NEW_DATA_READY_CMD and ZONE_XFRIN_FAILED
_COMMAND
are issued by
ZONE_NEW_DATA_READY_CMD and ZONE_XFRIN_FAILED are issued by
Xfrin process;
shutdown is issued by a user or Boss process. """
answer = create_answer(0)
...
...
@@ -643,7 +642,7 @@ class Zonemgr:
self._zone_refresh.zone_refresh_success(zone_name_class)
self._master_socket.send(b" ")# make self._slave_socket readble
elif command == ZONE_XFRIN_FAILED
_COMMAND
:
elif command ==
notify_out.
ZONE_XFRIN_FAILED:
""" Handle xfrin fail command"""
zone_name_class = self._parse_cmd_params(args, command)
logger.debug(DBG_ZONEMGR_COMMAND, ZONEMGR_RECEIVE_XFRIN_FAILED, zone_name_class[0], zone_name_class[1])
...
...
src/lib/python/isc/notify/notify_out.py
View file @
cb8f6b5e
...
...
@@ -35,6 +35,8 @@ logger = isc.log.Logger("notify_out")
from
isc.dns
import
*
ZONE_NEW_DATA_READY_CMD
=
'zone_new_data_ready'
ZONE_XFRIN_FAILED
=
'zone_xfrin_failed'
_MAX_NOTIFY_NUM
=
30
_MAX_NOTIFY_TRY_NUM
=
5
_EVENT_NONE
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment