Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content

Medium old OSC reports Networks in a diff format.

Kurt Garloff requested to merge feat/new-collect-port2 into main

Created by: garloff

So OSC-5.5.0 reports (openstack server list -f json):

[
  {
    "ID": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "Name": "HealthMon-Host",
    "Networks": {
      "kd500924-SCS-healthmonitor-network": [
        "192.168.0.17",
        "78.138.66.252"
      ]
    }
  }
]

whereas older version OSC-5.3.1 reports

[
  {
    "ID": "XXXXXXXXXXXXXXXXXXXXXXXXX",
    "Name": "testkg2",
    "Networks": "testkg2=192.168.33.95, 31.172.117.55",
  }
]

Adjust IP parser to handle both ...

Signed-off-by: Kurt Garloff kurt@garloff.de

Merge request reports

Loading