Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End-to-end test fails when trying to edit a L2VPN with P2MP #370

Closed
gretelliz opened this issue Jan 6, 2025 · 0 comments
Closed

End-to-end test fails when trying to edit a L2VPN with P2MP #370

gretelliz opened this issue Jan 6, 2025 · 0 comments

Comments

@gretelliz
Copy link

Testing the following example returns 500: Internal Server Error

        # existing L2VPN -> key

        api_url = SDX_CONTROLLER + '/l2vpn/1.0'
        payload = {
            "name": "VLAN ID 200 at AMPATH, TENET, at SAX", 
            "endpoints": [
                {"port_id": "urn:sdx:port:ampath.net:Ampath3:50", "vlan": "200"},
                {"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50", "vlan": "200"},
                {"port_id": "urn:sdx:port:sax.net:Sax01:50","vlan": "200"}
            ]
        }
        response = requests.patch(f"{api_url}/{key}", json=payload)

The return code 402 should be obtained
"402: Request not compatible (For instance, when a L2VPN P2MP is requested but only L2VPN P2P is supported)"

@gretelliz gretelliz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant