You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When posting on api/ipam/prefixes//available-ips/ the code uses the entire VRF object instead of the VRF ID on the serializer.
data = request.data.copy()
data['address'] = '{}/{}'.format(ipaddress, prefix.prefix.prefixlen)
data['vrf'] = prefix.vrf <=== HERE
serializer = serializers.WritableIPAddressSerializer(data=data)
which then fails with
"Incorrect type. Expected pk value, received VRF."
The text was updated successfully, but these errors were encountered:
alejandrosalinas
changed the title
Using VRF object instead id in POST to api/ipam/prefixes/<pk>/available-ips/
Using VRF object instead of id in POST to api/ipam/prefixes/<pk>/available-ips/
Sep 18, 2017
When posting on api/ipam/prefixes//available-ips/ the code uses the entire VRF object instead of the VRF ID on the serializer.
which then fails with
"Incorrect type. Expected pk value, received VRF."
The text was updated successfully, but these errors were encountered: