Skip to content

Commit

Permalink
Drop disable feature set
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiaoyuner committed May 8, 2023
1 parent 7014bca commit e984011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/config
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ INCLUDE_ROUTER_ADVERTISER ?= y

# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to
# run as worker node in kubernetes cluster.
INCLUDE_KUBERNETES ?= n
INCLUDE_KUBERNETES ?= y

KUBE_DOCKER_PROXY = http://172.16.1.1:3128/

Expand Down
4 changes: 2 additions & 2 deletions src/sonic-ctrmgrd/ctrmgr/ctrmgrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
USE_K8S_PROXY: ""
}

DISABLED_FEATURE_SET = {"database"}
ENABLED_FEATURE_SET = {"telemetry", "snmp"}

def log_debug(m):
msg = "{}: {}".format(inspect.stack()[1][3], m)
Expand Down Expand Up @@ -271,7 +271,7 @@ def run(self):
key, op, fvs = subscriber.pop()
if not key:
continue
if subscriber.getTableName() == FEATURE_TABLE and key in DISABLED_FEATURE_SET:
if subscriber.getTableName() == FEATURE_TABLE and key not in ENABLED_FEATURE_SET:
continue
log_debug("Received message : '%s'" % str((key, op, fvs)))
for callback in (self.callbacks
Expand Down

0 comments on commit e984011

Please sign in to comment.