You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing the following example results in 'return status 200: Connection published'.
// Body incomplete: vlan attribute is missing on an endpoint
api_url = SDX_CONTROLLER + '/l2vpn/1.0'
payload = {
"name": "Test L2VPN request",
"endpoints": [
{"port_id": "urn:sdx:port:ampath.net:Ampath3:50","vlan": "500"},
{"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50"}
]
}
response = requests.post(api_url, json=payload)
Return code 400 should be obtained.
"400: Request does not have a valid JSON or body is incomplete/incorrect"
The text was updated successfully, but these errors were encountered:
gretelliz
changed the title
End-to-end test fails with body incomplete
End-to-end test fails with incomplete body
Jan 2, 2025
gretelliz
changed the title
End-to-end test fails with incomplete body
End-to-end test fails when trying to create a L2VPN with incomplete body
Jan 2, 2025
@gretelliz Could you confirm if the issue is that the vlan information is missing from one port?
If so, I thought we should support it, ie, assign an available vlan by the sdx-controller.
@YufengXin That's right, the problem here is that the VLAN is not on one of the endpoints {"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50"} .
I think that assigning an available vlan is a valid solution, however this issue is related to the verification of the return code. According to the documentation, the request should return code 400.
Testing the following example results in 'return status 200: Connection published'.
Return code 400 should be obtained.
"400: Request does not have a valid JSON or body is incomplete/incorrect"
The text was updated successfully, but these errors were encountered: