checkpointctl icon indicating copy to clipboard operation
checkpointctl copied to clipboard

Display network information of checkpoints created with Podman

Open rst0git opened this issue 8 months ago • 2 comments

checkpointctl currently shows IP address information for checkpoints created with CRI-O but not with Podman. For checkpoints created with Podman, this information is stored in network.status, which has content in a JSON format like the following example:

{
  "podman": {
    "interfaces": {
      "eth0": {
        "subnets": [
          {
            "ipnet": "10.88.0.9/16",
            "gateway": "10.88.0.1"
          }
        ],
        "mac_address": "f2:99:8d:fb:5a:57"
      }
    }
  }
}

To enable this feature, we need to extract the network.status file from the checkpoint and parse its content.

rst0git avatar Jun 02 '24 21:06 rst0git