Adds refactors for more f5 modules (#34824)

The main patch is to remove the traceback generating code. There are
other small fixes that were made in addition to doing that.

* Removed re-def of cleanup_tokens.
* Changed parameter args to be keywords.
* Changed imports to include new module_util locations.
* Imports also include developing (sideband) module_util locations.
* Changed to using F5Client and plain AnsibleModule to prevent tracebacks caused by missing libraries.
* Removed init and update methods from most Parameter classes (optimization) as its now included in module_utils.
* Changed module and module param references to take into account the new self.module arg.
* Minor bug fixes made during this refactor.
This commit is contained in:
Tim Rupp
2018-01-12 21:49:12 -08:00
committed by GitHub
parent 0e4e7de000
commit a10aee0fc3
28 changed files with 1327 additions and 1593 deletions

View File

@@ -0,0 +1,42 @@
{
"kind": "tm:sys:file:ssl-cert:ssl-certstate",
"name": "ocsp.example.com.crt",
"partition": "Common",
"fullPath": "/Common/ocsp.example.com.crt",
"generation": 548,
"selfLink": "https://localhost/mgmt/tm/sys/file/ssl-cert/~Common~ocsp.example.com.crt?ver=13.0.0",
"certValidationOptions": [
"ocsp"
],
"certificateKeyCurveName": "none",
"certificateKeySize": 4096,
"checksum": "SHA1:2113:b84ae5ed7e236b35206b2ff61289df9547d5afa3",
"createTime": "2017-10-25T20:56:09Z",
"createdBy": "admin",
"expirationDate": 1545199767,
"expirationString": "Dec 19 06:09:27 2018 GMT",
"isBundle": "false",
"issuer": "CN=Alice Ltd Intermediate CA,OU=Alice Ltd Certificate Authority,O=Alice Ltd,ST=England,C=GB",
"issuerCert": "/Common/intermediate.crt",
"issuerCertReference": {
"link": "https://localhost/mgmt/tm/sys/file/ssl-cert/~Common~intermediate.crt?ver=13.0.0"
},
"keyType": "rsa-public",
"lastUpdateTime": "2017-10-25T20:56:09Z",
"mode": 33188,
"revision": 1,
"serialNumber": "4096",
"size": 2113,
"sourcePath": "file:///var/config/rest/downloads/ocsp.example.com.crt",
"subject": "CN=ocsp.example.com,OU=Alice Ltd Certificate Authority,O=Alice Ltd,ST=England,C=GB",
"updatedBy": "admin",
"version": 3,
"bundleCertificatesReference": {
"link": "https://localhost/mgmt/tm/sys/file/ssl-cert/~Common~ocsp.example.com.crt/bundle-certificates?ver=13.0.0",
"isSubcollection": true
},
"certValidatorsReference": {
"link": "https://localhost/mgmt/tm/sys/file/ssl-cert/~Common~ocsp.example.com.crt/cert-validators?ver=13.0.0",
"isSubcollection": true
}
}