You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifhwsku.lower() in [spc1_hwsku.lower() forspc1_hwskuinspc1_hwskus]:
29
35
asic="spc1"
30
-
36
+
31
37
returnasic
32
38
33
39
34
-
defrdma_config_update_validator(field):
40
+
defrdma_config_update_validator(path, operation):
35
41
version_info=device_info.get_sonic_version_info()
36
42
build_version=version_info.get('build_version')
37
43
asic=get_asic_name()
38
-
field=field.lower()
44
+
path=path.lower()
39
45
46
+
# For paths like /BUFFER_PROFILE/pg_lossless_50000_300m_profile/xoff, remove pg_lossless_50000_300m from the path so that we can clearly determine which fields are modifiable
Copy file name to clipboardExpand all lines: generic_config_updater/gcu_field_operation_validators.conf.json
+102-9
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,114 @@
9
9
"",
10
10
"e.g. 'show.acl.test_acl'",
11
11
"",
12
-
"field_operation_validators for a given table defines a list of validators that all must pass for modification to the specified field and table to be allowed",
12
+
"table_operation_validators for a given table defines a list of validators that all must pass for modification to the table to be allowed",
13
+
"",
14
+
"validator_data provides data relevant to each validator",
raiseGenericConfigUpdaterError("Attempting to call invalid method {} in module {}. Module must be generic_config_updater.field_operation_validators, and method must be a defined validator".format(method_name, module_name))
0 commit comments