brocade / ansible

55 stars 33 forks source link

Adding license key #134

Open olemyk opened 1 year ago

olemyk commented 1 year ago

Hi. Are there any examples of adding a license key

Can't quite find the right combination.

from brocade-operation-license

it says it wants brocade-operation-license with license-parameters but that doesn't work.

running 9.0.1e1

  - name: license add
    brocade.fos.brocade_singleton_obj:
      credential: "{{credential}}"
      vfid: -1
      module_name: 'brocade-operation-license' #"brocade-operation-license" #brocade-license
      obj_name: 'action' #"license" #name #
      attributes: 
          action: 'install'
          name:  RRmtMRGYg4MZ9EPHaWsfdgBCHBtCEaDCLBAQYH'
  - name: license add
    brocade.fos.brocade_singleton_obj:
      credential: "{{credential}}"
      vfid: -1
      module_name: 'brocade-license' #"brocade-operation-license" #brocade-license
      obj_name: license #license-parameters #'action' #"license" #name #
      attributes: 
          action: 'install'
          name: 'RRmtMRGYg4MZ9EPHaWadfCHBtCEaDCLBAQYH'
prasad-valmeti-broadcom commented 5 months ago

In REST implementation there are two types of requests, objects and operations (rpcs). singleton_obj and list_obj are for object types. Currently, we support only firmwaredownload, and supportsave operations. license is not supported yet. Will check with PM and update you on which release this will be supported.