atlanticwave-sdx / sdx-controller

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

endpoints returns vlan_range instead of vlan #333

Closed usmanazFIU closed 1 month ago

usmanazFIU commented 1 month ago

GET /l2vpn/1.0 list all connections and GET /l2vpn/1.0/service_id find a connection returns vlan_range instead of vlan in the JSON response

mahidhar1g commented 1 month ago
Screenshot 2024-10-16 at 9 46 53 AM

HI @congwang09, this is the screenshot from the swagger, it is returning vlan_range

NOTE: While making a post request, I am using this structure, and according to specification we should use vlan.

{ "name": "fabrictest1", "endpoints": [ { "id": "urn:sdx:port:ampath.net:Novi03:1", "name": "urn:sdx:port:ampath.net:Novi03:1", "vlan": "100" }, { "id": "urn:sdx:port:tenet.ac.za:Novi07:1", "name": "urn:sdx:port:tenet.ac.za:Novi07:1", "vlan": "100" } ] }