Lakshminarayana R. Kammath | eca4dce | 2019-03-27 12:28:06 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Utility for getting/reading Secure Boot related settings. |
| 3 | Resource ../../lib/open_power_utils.robot |
| 4 | Resource ../../lib/utils.robot |
| 5 | Resource ../../lib/state_manager.robot |
| 6 | Resource ../../lib/boot_utils.robot |
| 7 | Library ../../lib/bmc_ssh_utils.py |
| 8 | |
| 9 | *** Keywords *** |
| 10 | |
| 11 | Set TPMEnable Policy |
| 12 | [Documentation] Enable or disable TPM Policy. |
| 13 | [Arguments] ${tpm_policy} |
| 14 | |
| 15 | # Description of argument(s): |
| 16 | # tpm_policy Enable-1 or Disable-0. |
| 17 | |
| 18 | ${value_dict}= Create Dictionary data=${tpm_policy} |
| 19 | Write Attribute ${CONTROL_HOST_URI}/TPMEnable TPMEnable |
| 20 | ... data=${value_dict} |
| 21 | |
| 22 | |
| 23 | Set And Verify TPM Policy |
| 24 | [Documentation] Enable or disable and verify TPM Policy. |
| 25 | [Arguments] ${tpm_policy} |
| 26 | |
| 27 | # Description of argument(s): |
| 28 | # tpm_policy Enable-1 or Disable-0. |
| 29 | |
| 30 | Set TPMEnable Policy ${tpm_policy} |
| 31 | Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${tpm_policy} |