This repository was archived by the owner on Oct 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4545 enclosureUris = [],
4646 enclosureGroupUri = "" ,
4747 forceInstallFirmware = False ,
48- name = "LogicalEnclosure2" ,
49- initialScopeUris = ["/rest/scopes/cd237b60-09e2-45c4-829e-082e318a6d2a" , "/rest/scopes/e9dde1f2-69d5-461b-871d-1790aebbc519" ]
48+ name = "LogicalEnclosure2"
5049 )
5150
5251 # Get enclosure group for creating logical enclosure
9897# Get logical enclosure by id
9998try :
10099 logical_enclosure_by_id = oneview_client .logical_enclosures .get (
101- "5a136d8e-d44a-42f9-bf28-5c93a93f8663 " )
102- print ("Got logical enclosure '{}' by id: '5a136d8e-d44a-42f9-bf28-5c93a93f8663 '\n uri: '{}'" .format (
100+ "acb17b89-6724-4602-818a-1ee20ed4ec60 " )
101+ print ("Got logical enclosure '{}' by id: 'acb17b89-6724-4602-818a-1ee20ed4ec60 '\n uri: '{}'" .format (
103102 logical_enclosure_by_id ['name' ], logical_enclosure_by_id ['uri' ]))
104103except HPOneViewException as e :
105104 print (e .msg )
185184 operation = "replace" ,
186185 path = "/firmware" ,
187186 value = {
188- "firmwareBaselineUri" : "/rest/firmware-drivers/spp-2017_04_0-SPP2017040_2017_0420_14 " ,
187+ "firmwareBaselineUri" : "/rest/firmware-drivers/SPPgen9snap6_2016_0405_87 " ,
189188 "firmwareUpdateOn" : "EnclosureOnly" ,
190189 "forceInstallFirmware" : "true" ,
191190 "validateIfLIFirmwareUpdateIsNonDisruptive" : "true" ,
You can’t perform that action at this time.
0 commit comments