Description
def listen(self):
"""Start listen Redis keyspace events and will trigger corresponding handlers when content of a table changes.
"""
self.pubsub = self.get_redis_client(self.db_name).pubsub()
self.pubsub.psubscribe(**{"__keyspace@{}__:*".format(self.get_dbid(self.db_name)): self.sub_msg_handler})
self.sub_thread = self.pubsub.run_in_thread(sleep_time = 0.01)
I find that function "self.pubsub.psubscribe()" return error of getting unexpected arguments. Because pubsub.psubscribe() is defined in swsscommon.swsscommon rather than swsssdk. The argument of pubsub.psubscribe() in swsscommon.swsscommon is "string &pattern"
Steps to reproduce the issue:
- init switch when device is running image
Describe the results you received:
- Failed to configure route by frr mgmt-framework
Describe the results you expected:
- Configure route by frr mgmt-framework successfully
Output of show version:
Master Version
Output of show techsupport:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):