atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
1 stars 3 forks source link

DELETE /connection endpoint only returns success message but does not delete circuit #266

Closed usmanazFIU closed 1 month ago

usmanazFIU commented 2 months ago

The endpoint returns an ok message but the circuit does not get deleted from the database

usmanazFIU commented 1 month ago

@congwang09 i tried deleting connection again. it says deleted but connection is still appearing in the GET list connections endpoint

usmanazFIU commented 1 month ago
image

i deleted the id 35da7792-6038-4cef-a3ba-862a678053da

usmanazFIU commented 1 month ago
image
congwang09 commented 1 month ago

@usmanazFIU Are you running the latest code? The behavior should be like this: Send connection request, return 200. Then delete the connection, return 200. If delete connection again for same connection, return 404 not found. If query the connection again this time, will return 404 not found.

sdx-controller-sdx-controller-1  | INFO:     104.59.236.164:62063 - "POST /SDX-Controller/1.0.0/connection HTTP/1.1" 200 OK
sdx-controller-sdx-controller-1  | INFO:     104.59.236.164:62065 - "DELETE /SDX-Controller/1.0.0/connection/285eea4b-1e86-4d54-bd75-f14b8cb4a63a HTTP/1.1" 200 OK
sdx-controller-sdx-controller-1  | INFO:     104.59.236.164:62066 - "DELETE /SDX-Controller/1.0.0/connection/285eea4b-1e86-4d54-bd75-f14b8cb4a63a HTTP/1.1" 404 Not Found
sdx-controller-sdx-controller-1  | INFO:     104.59.236.164:62067 - "GET /SDX-Controller/1.0.0/connection/285eea4b-1e86-4d54-bd75-f14b8cb4a63a HTTP/1.1" 404 Not Found
usmanazFIU commented 1 month ago

@congwang09 yes i am running the latest code. it does not appear on the GET /connection/{connectionid} endpoint. but it is appearing on the GET list all connection endpoint