Skip to content

Commit

Permalink
[sonic-swsscommon] submodule update with commit's (sonic-net#5300)
Browse files Browse the repository at this point in the history
[schema] Make schema header support C project (sonic-net#373)
Removed DB specific get api's from Selectable class (sonic-net#378)

With the change as part of sonic-net#378 caclmgrd need to be updated
to use new client side Get API to access namespace.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
  • Loading branch information
abdosi authored and santhosh-kt committed Feb 25, 2021
1 parent 7fa0925 commit a0577d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions files/image_config/caclmgrd/caclmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,14 @@ class ControlPlaneAclManager(object):

# Loop on select to see if any event happen on config db of any namespace
while True:
(state, c) = sel.select(SELECT_TIMEOUT_MS)
(state, selectableObj) = sel.select(SELECT_TIMEOUT_MS)
# Continue if select is timeout or selectable object is not return
if state != swsscommon.Select.OBJECT:
continue
# Get the corresponding namespace from selectable object
namespace = c.getDbNamespace()
# Get the redisselect object from selectable object
redisSelectObj = swsscommon.CastSelectableToRedisSelectObj(selectableObj)
# Get the corresponding namespace from redisselect db connector object
namespace = redisSelectObj.getDbConnector().getNamespace()
# Pop data of both Subscriber Table object of namespace that got config db acl table event
for table in config_db_subscriber_table_map[namespace]:
table.pop()
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-swss-common

0 comments on commit a0577d2

Please sign in to comment.