-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availabletopic: OpenAPItype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.4.2
Python version
3.10
Steps to Reproduce
Check API documentation regarding what endpoint POST /ipam/prefixes/{id}/available-ips/ returns, it shows:
[IPAddress{...}]
Create request and inspect output:
{
"id": 1655,
"url": "https://xxxxxx/api/ipam/ip-addresses/1655/",
"display": "x.x.x.x/x",
"family": {
"value": 4,
"label": "IPv4"
},
"address": "x.x.x.x/x",
"vrf": null,
"tenant": null,
"status": {
"value": "active",
"label": "Active"
},
"role": null,
"assigned_object_type": null,
"assigned_object_id": null,
"assigned_object": null,
"nat_inside": null,
"nat_outside": [],
"dns_name": "",
"description": "",
"comments": "",
"tags": [],
"custom_fields": {},
"created": "2023-01-25T13:06:34.482571Z",
"last_updated": "2023-01-25T13:06:34.482595Z"
}Expected Behavior
as swagger.json is used to generate go-netbox client it's not possible to request new ip address as function return error it cannot serialize *models.IPAddress as []*models.IPAddress
Observed Behavior
json: cannot unmarshal object into Go value of type []*models.IPAddress
hikhvar
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availabletopic: OpenAPItype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application