@@ -79,7 +79,6 @@ class Feature(object):
79
79
self .delayed = safe_eval (feature_cfg .get ('delayed' , 'False' ))
80
80
self .has_global_scope = safe_eval (feature_cfg .get ('has_global_scope' , 'True' ))
81
81
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' ))
83
82
84
83
def _get_feature_table_key_render_value (self , configuration , device_config , expected_values ):
85
84
""" Returns the target value for the feature by rendering the configuration as J2 template.
@@ -132,7 +131,6 @@ class FeatureHandler(object):
132
131
self ._device_running_config = device_info .get_device_runtime_metadata ()
133
132
self .ns_cfg_db = {}
134
133
self .ns_feature_state_tbl = {}
135
- self .num_dpus = device_info .get_num_dpus ()
136
134
137
135
# Initlaize Global config that loads all database*.json
138
136
if self .is_multi_npu :
@@ -366,9 +364,7 @@ class FeatureHandler(object):
366
364
feature_names = (
367
365
([feature .name ] if feature .has_global_scope or not self .is_multi_npu else []) +
368
366
([(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 )])
372
368
)
373
369
374
370
if not feature_names :
0 commit comments