CloudGenix / sdk-python

Python2 and Python3 SDK for the CloudGenix AppFabric
MIT License
25 stars 11 forks source link

Push new static routes #23

Closed gsheppar closed 3 years ago

gsheppar commented 3 years ago

When trying to add new static routes with the 5.5.1 SDK the cloudgenix_config Do script is failing to create a new route with the error below.

ERROR: Staticroute creation failed: REQUEST: POST /v2.1/api/tenants/1162/sites/16183447351700132/elements/16176402914500020/staticroutes REQUEST HEADERS: User-Agent: python-requests/2.25.1 (CGX SDK v5.5.1b1) Accept-Encoding: gzip, deflate Accept: application/json Connection: keep-alive X-Auth-Token: <SENSITIVE - NOT SHOWN BY DEFAULT> Content-Type: application/json Cookie: AUTH_TOKEN="<SENSITIVE - NOT SHOWN BY DEFAULT>" Content-Length: 273 REQUEST BODY: { "description": null, "destination_prefix": "192.168.203.0/24", "network_context_id": null, "nexthop_reachability_probe": false, "nexthops": [ { "admin_distance": 1, "nexthop_interface_id": null, "nexthop_ip": "10.20.201.166", "self": false } ], "scope": "local", "tags": null }

RESPONSE: 400 Bad Request RESPONSE HEADERS: Date: Tue, 13 Apr 2021 22:35:18 GMT Content-Length: 270 Connection: keep-alive Server: nginx RESPONSE DATA: { "_etag": 0, "_content_length": "0", "_schema": 0, "_created_on_utc": 0, "_updated_on_utc": 0, "_status_code": "400", "_request_id": "1618353318252009999994242912717418025197", "_error": [ { "code": "INVALID_JSON_INPUT", "message": "\"Input JSON does not have all required attributes.\"" } ] }

gsheppar commented 3 years ago

Okay this is an issue with compatibility with cloudgenix_config (current master, current released version 1.3.0) and will be resolved in a new release of it.