Skip to content

Commit d6393ee

Browse files
committed
Revert "[featured]: Add database services for DPU (sonic-net#84)"
This reverts commit e8ae2af.
1 parent 970e7b3 commit d6393ee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/featured

+1-5
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class Feature(object):
7979
self.delayed = safe_eval(feature_cfg.get('delayed', 'False'))
8080
self.has_global_scope = safe_eval(feature_cfg.get('has_global_scope', 'True'))
8181
self.has_per_asic_scope = safe_eval(self._get_feature_table_key_render_value(feature_cfg.get('has_per_asic_scope', 'False'), device_config or {}, ['True', 'False']))
82-
self.has_per_dpu_scope = safe_eval(feature_cfg.get('has_per_dpu_scope', 'False'))
8382

8483
def _get_feature_table_key_render_value(self, configuration, device_config, expected_values):
8584
""" Returns the target value for the feature by rendering the configuration as J2 template.
@@ -132,7 +131,6 @@ class FeatureHandler(object):
132131
self._device_running_config = device_info.get_device_runtime_metadata()
133132
self.ns_cfg_db = {}
134133
self.ns_feature_state_tbl = {}
135-
self.num_dpus = device_info.get_num_dpus()
136134

137135
# Initlaize Global config that loads all database*.json
138136
if self.is_multi_npu:
@@ -366,9 +364,7 @@ class FeatureHandler(object):
366364
feature_names = (
367365
([feature.name] if feature.has_global_scope or not self.is_multi_npu else []) +
368366
([(feature.name + '@' + str(asic_inst)) for asic_inst in range(device_info.get_num_npus())
369-
if self.is_multi_npu and (all_instance or feature.has_per_asic_scope)]) +
370-
([(feature.name + '@' + device_info.DPU_NAME_PREFIX + str(dpu_inst)) for dpu_inst in range(self.num_dpus)
371-
if all_instance or feature.has_per_dpu_scope])
367+
if self.is_multi_npu and (all_instance or feature.has_per_asic_scope)])
372368
)
373369

374370
if not feature_names:

0 commit comments

Comments
 (0)