Firmware

Lists the system firmware including primary, secondary flash, current running code version, and free space available for the entire flash:

/data/flash

To list the primary partition including code version, code size, code name, boot version, boot size, and boot name:

/data/flash/primary

To list the secondary partition including code version, code size, code name, boot version, boot size, and boot name:

/data/flash/secondary        

To list the current router or switch running image:

/data/flash/running   

To list the current available free space of entire flash:

/data/flash/freespace   

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/flash
Request body: None
Response body:  {"icx-openconfig-flash:flash":
    "primary":
     {
                 "code_version":"09.0.10cT243",
                 "code_size":67419316,
                 "code_name":"GZR09010cdev.bin",
                 "boot_size":1081856,
                 "boot_version":"10.1.21T245",
                 "boot_name":"gzu10121"
      },
      "secondary":
      {
                  "code_version":"10.0.00T243",
                  "code_size":75794644,
                   "code_name":"GZR10000_b367.bin",
                   "boot_size":1081856,
                   "boot_version":"10.1.22T245",
                   "boot_name":"gzu10122b30"
        },
        "running":
        {
                 "code_version":"09.0.10cT243"
        }
        "freespace":2150387712
}