[Starlingx-discuss] Issue when working with API requests

Perez Carranza, Jose jose.perez.carranza at intel.com
Mon Dec 3 20:39:35 UTC 2018


Hi 

I'm trying to change the MTU value of an interface of a controller with API requests directly, I used the same request  that the "system --debug host-if-modify controller-1 mgmt0 -m 9000" command is doing but an error is shown [1], does anyone know what is missing from this request?  the commands that I'm suing to obtain the TOKEN and send the request are [2]


1- " {"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Invalid input for field/attribute interface. Value: 'e65db832-4eea-45d1-bfc9-aa7dd0d860aa'. unable to convert to Interface. Error: __init__() takes exactly 1 argument (2 given)\"}"}curl: (6) Could not resolve host: PATCH; Name or service not known"

2- http://paste.openstack.org/show/736594/ 

Regards,
José





More information about the Starlingx-discuss mailing list