Hello everyone,
About half a year ago I wrote a script that uses the PVE API to retrieve internal IP addresses of VMs using the network-get-interfaces command. It worked fine up until today, now it only returns the loopback address 127.0.0.1 while I can see the "real" IP in the web interface of the VM.
The VM configurations did not change and the interface configurations of my PVE nodes did not either, also the output structure of the network-get-interfaces command looks like it was changed, but I cannot really confirm that. This is my output:
Does someone know what could be the issue here?
Thanks in advance!
About half a year ago I wrote a script that uses the PVE API to retrieve internal IP addresses of VMs using the network-get-interfaces command. It worked fine up until today, now it only returns the loopback address 127.0.0.1 while I can see the "real" IP in the web interface of the VM.
The VM configurations did not change and the interface configurations of my PVE nodes did not either, also the output structure of the network-get-interfaces command looks like it was changed, but I cannot really confirm that. This is my output:
JSON:
{'result': [{'ip-addresses': [{'ip-address-type': 'ipv4', 'prefix': 8, 'ip-address': '127.0.0.1'}, {'ip-address-type': 'ipv6', 'prefix': 128, 'ip-address': '::1'}], 'hardware-address': '00:00:00:00:00:00', 'name': 'lo', 'statistics': {'tx-dropped': 0, 'rx-errs': 0, 'tx-bytes': 0, 'tx-packets': 0, 'rx-packets': 0, 'rx-bytes': 0, 'tx-errs': 0, 'rx-dropped': 0}}, {'ip-addresses': [{'ip-address-type': 'ipv6', 'ip-address': 'fe80::c93e:7bb5:691b:467b', 'prefix': 64}, {'ip-address': 'fe80::7188:2860:6442:2f4f', 'prefix': 64, 'ip-address-type': 'ipv6'}], 'statistics': {'rx-bytes': 5956, 'rx-packets': 23, 'tx-errs': 0, 'rx-dropped': 0, 'tx-dropped': 0, 'rx-errs': 0, 'tx-packets': 6, 'tx-bytes': 808}, 'name': 'eth0', 'hardware-address': 'b2:c8:0b:6f:83:54'}]}
Does someone know what could be the issue here?
Thanks in advance!