@@ -348,6 +348,10 @@ class FeatureHandler(object):
348
348
self .set_feature_state (feature , self .FEATURE_STATE_FAILED )
349
349
return
350
350
self ._config_db .mod_entry ('FEATURE' , feature_config .name , {'has_per_asic_scope' : str (feature_config .has_per_asic_scope )})
351
+
352
+ # sync has_per_asic_scope to CONFIG_DB in namespaces in multi-asic platform
353
+ for ns , db in self .ns_cfg_db .items ():
354
+ db .mod_entry ('FEATURE' , feature_config .name , {'has_per_asic_scope' : str (feature_config .has_per_asic_scope )})
351
355
352
356
def update_systemd_config (self , feature_config ):
353
357
"""Updates `Restart=` field in feature's systemd configuration file
@@ -474,14 +478,14 @@ class FeatureHandler(object):
474
478
def resync_feature_state (self , feature ):
475
479
self ._config_db .mod_entry ('FEATURE' , feature .name , {'state' : feature .state })
476
480
477
- # resync the feature state in CONFIG_DB in namespaces in multi-asic platform
481
+ # resync the feature state to CONFIG_DB in namespaces in multi-asic platform
478
482
for ns , db in self .ns_cfg_db .items ():
479
483
db .mod_entry ('FEATURE' , feature .name , {'state' : feature .state })
480
484
481
485
def set_feature_state (self , feature , state ):
482
486
self ._feature_state_table .set (feature .name , [('state' , state )])
483
487
484
- # Update the feature state in STATE_DB in namespaces in multi-asic platform
488
+ # Update the feature state to STATE_DB in namespaces in multi-asic platform
485
489
for ns , tbl in self .ns_feature_state_tbl .items ():
486
490
tbl .set (feature .name , [('state' , state )])
487
491
0 commit comments