Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
8a33e4ab
Commit
8a33e4ab
authored
Feb 04, 2013
by
Michal 'vorner' Vaner
Browse files
[1924] Use the constants in python group_sendmsg
parent
efb422b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/cc/session.py
View file @
8a33e4ab
...
...
@@ -22,6 +22,7 @@ import threading
import
bind10_config
import
isc.cc.message
from
isc.util.common_defs
import
*
class
ProtocolError
(
Exception
):
pass
class
NetworkError
(
Exception
):
pass
...
...
@@ -260,13 +261,13 @@ class Session:
want_answer
=
False
):
seq
=
self
.
_next_sequence
()
self
.
sendmsg
({
"type"
:
"send"
,
"from"
:
self
.
_lname
,
"to"
:
to
,
"group"
:
group
,
"instance"
:
instance
,
"seq"
:
seq
,
"want_answer"
:
want_answer
CC_HEADER_TYPE
:
CC_COMMAND_SEND
,
CC_HEADER_FROM
:
self
.
_lname
,
CC_HEADER_TO
:
to
,
CC_HEADER_GROUP
:
group
,
CC_HEADER_INSTANCE
:
instance
,
CC_HEADER_SEQ
:
seq
,
CC_HEADER_WANT_ANSWER
:
want_answer
},
isc
.
cc
.
message
.
to_wire
(
msg
))
return
seq
...
...
Write
Preview
Markdown
is supported
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