-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Cherry-pick PR #8341 into 202205 branch, manual to resolve merge conflicts
- Loading branch information
1 parent
18f7975
commit e22b1fe
Showing
5 changed files
with
204 additions
and
9 deletions.
There are no files selected for viewing
137 changes: 137 additions & 0 deletions
137
tests/generic_config_updater/gcu_field_operation_validators.conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"README": [ | ||
"field_operation_validators provides, module & method name as ", | ||
" <module name>.<method name>", | ||
"NOTE: module name could have '.'", | ||
" ", | ||
"The last element separated by '.' is considered as ", | ||
"method name", | ||
"", | ||
"e.g. 'show.acl.test_acl'", | ||
"", | ||
"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", | ||
"", | ||
"validator_data provides data relevant to each validator", | ||
"" | ||
], | ||
"helper_data": { | ||
"rdma_config_update_validator": { | ||
"mellanox_asics": { | ||
"spc1": [ "ACS-MSN2700", "ACS-MSN2740", "ACS-MSN2100", "ACS-MSN2410", "ACS-MSN2010", "Mellanox-SN2700", "Mellanox-SN2700-D48C8" ] | ||
}, | ||
"broadcom_asics": { | ||
"th": [ "Force10-S6100", "Arista-7060CX-32S-C32", "Arista-7060CX-32S-C32-T1", "Arista-7060CX-32S-D48C8", "Celestica-DX010-C32", "Seastone-DX010" ], | ||
"th2": [ "Arista-7260CX3-D108C8", "Arista-7260CX3-C64", "Arista-7260CX3-Q64" ], | ||
"td2": [ "Force10-S6000", "Force10-S6000-Q24S32", "Arista-7050-QX32", "Arista-7050-QX-32S", "Nexus-3164", "Arista-7050QX32S-Q32" ], | ||
"td3": [ "Arista-7050CX3-32S-C32", "Arista-7050CX3-32S-D48C8" ] | ||
} | ||
} | ||
}, | ||
"tables": { | ||
"PFC_WD": { | ||
"field_operation_validators": [ "generic_config_updater.field_operation_validators.rdma_config_update_validator" ], | ||
"validator_data": { | ||
"rdma_config_update_validator": { | ||
"PFCWD enable/disable": { | ||
"fields": [ | ||
"restoration_time", | ||
"detection_time", | ||
"action", | ||
"global/poll_interval" | ||
], | ||
"operations": ["remove", "add", "replace"], | ||
"platforms": { | ||
"spc1": "20181100", | ||
"td2": "20181100", | ||
"th": "20181100", | ||
"th2": "20181100", | ||
"td3": "20201200", | ||
"cisco-8000": "20201200" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"BUFFER_POOL": { | ||
"field_operation_validators": [ "generic_config_updater.field_operation_validators.rdma_config_update_validator" ], | ||
"validator_data": { | ||
"rdma_config_update_validator": { | ||
"Shared/headroom pool size changes": { | ||
"fields": [ | ||
"ingress_lossless_pool/xoff", | ||
"ingress_lossless_pool/size", | ||
"egress_lossy_pool/size" | ||
], | ||
"operations": ["replace"], | ||
"platforms": { | ||
"spc1": "20191100", | ||
"td2": "", | ||
"th": "20221100", | ||
"th2": "20221100", | ||
"td3": "20221100", | ||
"cisco-8000": "" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"field_operation_validators": [ "generic_config_updater.field_operation_validators.rdma_config_update_validator" ], | ||
"validator_data": { | ||
"rdma_config_update_validator": { | ||
"Dynamic threshold tuning": { | ||
"fields": [ | ||
"dynamic_th" | ||
], | ||
"operations": ["replace"], | ||
"platforms": { | ||
"spc1": "20181100", | ||
"td2": "20181100", | ||
"th": "20181100", | ||
"th2": "20181100", | ||
"td3": "20201200", | ||
"cisco-8000": "" | ||
} | ||
}, | ||
"PG headroom modification": { | ||
"fields": [ | ||
"xoff" | ||
], | ||
"operations": ["replace"], | ||
"platforms": { | ||
"spc1": "20191100", | ||
"td2": "", | ||
"th": "20221100", | ||
"th2": "20221100", | ||
"td3": "20221100", | ||
"cisco-8000": "" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"WRED_PROFILE": { | ||
"field_operation_validators": [ "generic_config_updater.field_operation_validators.rdma_config_update_validator" ], | ||
"validator_data": { | ||
"rdma_config_update_validator": { | ||
"ECN tuning": { | ||
"fields": [ | ||
"azure_lossless/green_min_threshold", | ||
"azure_lossless/green_max_threshold", | ||
"azure_lossless/green_drop_probability" | ||
], | ||
"operations": ["replace"], | ||
"platforms": { | ||
"spc1": "20181100", | ||
"td2": "20181100", | ||
"th": "20181100", | ||
"th2": "20181100", | ||
"td3": "20201200", | ||
"cisco-8000": "" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters