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 create an existing L2VPN #364

Open
Tracked by #156
gretelliz opened this issue Jan 2, 2025 · 0 comments
Open
Tracked by #156

End-to-end test fails when trying to create an existing L2VPN #364

gretelliz opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@gretelliz
Copy link

gretelliz commented Jan 2, 2025

Testing the following example gives 'return status 400: PCE error: Can't find a valid vlan breakdown solution'.

        api_url = SDX_CONTROLLER + '/l2vpn/1.0'
        payload = {
            "name": "VLAN between TENET/1000 and SAX/1000", 
            "endpoints": [
                {"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50", "vlan": "1000"},
                {"port_id": "urn:sdx:port:sax.net:Sax01:50","vlan": "1000"}
            ]
        }
        response = requests.post(api_url, json=payload)
        assert response.status_code == 201, response.text

        time.sleep(30)

        response = requests.post(api_url, json=payload) // Returns 400

Return code 409 should be obtained.
"409: L2VPN Service already exists"

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

2 participants