CiscoDevNet / csmp-agent-lib

CiscoDevNet Opensource CSMP-Agent Library (OpenCSMP)
https://github.com/CiscoDevNet/csmp-agent-lib
Apache License 2.0
4 stars 3 forks source link

Implement Firmware-upgrade and Mgmt TLVs support #10

Closed manojnacsl closed 4 months ago

manojnacsl commented 4 months ago

Add support for the following Firmware upgrade and management TLVs to Opensource CSMP-Agent

TLV-ID          NAME                    OPERATION
---------------------------------------------------
1. TLV65    TRANSFER REQUEST    GET
2. TLV65    TRANSFER REQUEST    POST
3. TLV71    TRANSFER RESPONSE   POST
4. TLV67    IMAGE BLOCK     POST
5. TLV68    LOAD REQUEST        GET
6. TLV68    LOAD REQUEST        POST
7. TLV72    LOAD RESPONSE       POST
8. TLV69    CANCEL LOAD REQUEST POST
9. TLV73    CANCEL LOAD RESPONSE    POST
10. TLV70   SET BACKUP REQUEST  POST
11. TLV74   SET BACKUP RESPONSE POST
12. TLV75   FIRMWARE IMAGE INFO GET

TLV Description: TLV65 TRANSFER REQUEST GET Fetch information about the currently active transfer request from the device.

TLV65 TRANSFER REQUEST POST Initiate a new transfer request carrying information about the image to be transferred to the device.

TLV71 TRANSFER RESPONSE POST Sent as a response to transfer request indicating the result of the request back to the agent from the device

TLV67 IMAGE BLOCK POST Carries the actual image file blocks from the agent to the device.

TLV68 LOAD REQUEST GET Fetch information about active load requests

TLV68 LOAD REQUEST POST Sent to trigger load request at a given time on the device. Contains file hash for image file to be loaded to running slot and time when to load.

TLV72 LOAD RESPONSE POST Sent as a response to Load Request POST indicating the status of the triggered load request.

TLV69 CANCEL LOAD REQUEST POST Cancel any previously configured/active load requests.

TLV73 CANCEL LOAD RESPONSE POST Sent as a response to TLV69 indicating the status of the load request cancellation.

TLV70 SET BACKUP REQUEST POST Sent to trigger copying RUN/UPLOAD image to the backup slot based on the file hash.

TLV74 SET BACKUP RESPONSE POST Sent in response to TLV70 indicating the status of the backup request.

TLV75 FIRMWARE IMAGE INFO GET Get firmware image/slot information of the active slots.

Implemented:

Note: FND currently does not have feature support for firmware upgrade and management TLVs for generic third-party devices. This feature support is expected to be added in future.