Browse Source

use subtype=meonly for channel subscriptions in bigtool (i think it currently only wants responses, not other chatter)

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@269 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
8f9a4c381f
2 changed files with 4 additions and 3 deletions
  1. 3 3
      src/bin/bigtool/run_bigtool.py
  2. 1 0
      src/lib/cc/python/ISC/CC/session.py

+ 3 - 3
src/bin/bigtool/run_bigtool.py

@@ -32,9 +32,9 @@ def _prepare_fake_data(bigtool):
 if __name__ == '__main__':
     try:
         cc = ISC.CC.Session()
-        cc.group_subscribe("BigTool")
-        cc.group_subscribe("ConfigManager")
-        cc.group_subscribe("Boss")
+        cc.group_subscribe("BigTool", "*", "meonly")
+        cc.group_subscribe("ConfigManager", "*", "meonly")
+        cc.group_subscribe("Boss", "*", "meonly")
 
         tool = BigTool(cc)
         _prepare_fake_data(tool)   

+ 1 - 0
src/lib/cc/python/ISC/CC/session.py

@@ -103,6 +103,7 @@ class Session:
         return self._sequence
 
     def group_subscribe(self, group, instance = "*", subtype = "normal"):
+        """subtype can be 'normal' or 'meonly'"""
         self.sendmsg({
             "type": "subscribe",
             "group": group,