mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
listen to ConfigManager channel for commands
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@135 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -3,6 +3,7 @@ import ISC
|
||||
class ConfigManager:
|
||||
def __init__(self):
|
||||
self.cc = ISC.CC.Session()
|
||||
self.cc.group_subscribe("ConfigManager")
|
||||
|
||||
def read_config(self, filename):
|
||||
pass
|
||||
@@ -12,6 +13,9 @@ class ConfigManager:
|
||||
|
||||
def run(self):
|
||||
while (True):
|
||||
env, msg = self.cc.group_recvmsg(False)
|
||||
print "message: "
|
||||
print msg
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user