atlanticwave-sdx / sdx-controller

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

SDX-Controller is not reporting the chosen VLAN when vlan is "any" #320

Open italovalcy opened 1 month ago

italovalcy commented 1 month ago

Hi,

SDX-Controller is not reporting the chosen VLAN when vlan is "any".

$ curl -s http://0.0.0.0:8080/SDX-Controller/1.0.0/connections
{
  "322ac446-f2ca-4ada-a162-a4611f1a9271": {
    "endpoints": [
      {
        "id": "urn:sdx:port:amlight.net:Switch01:16",
        "name": "urn:sdx:port:amlight.net:Switch01:16",
        "vlan_range": "any"
      },
      {
        "id": "urn:sdx:port:tenet.ac.za:Switch06:22",
        "name": "urn:sdx:port:tenet.ac.za:Switch06:22",
        "vlan_range": "any"
      }
    ],
    "id": "322ac446-f2ca-4ada-a162-a4611f1a9271",
    "name": "Meican-SDX"
  },
}

As we defined on the AHM Aug 2024, we should save the chosen VLAN instead of the word "any". That value should be presented on the List L2VPN endpoint.

sajith commented 3 weeks ago

Wait, I misunderstood. I thought that pce wrongly returns any when request contains any, but it doesn't. This is an sdx-controller issue after all.