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 a L2VPN with vlan as a range #359

Open
Tracked by #376
gretelliz opened this issue Jan 2, 2025 · 2 comments
Open
Tracked by #376
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": "VLANs 10-99 between AMPATH and SAX",
            "endpoints": [
                {"port_id": "urn:sdx:port:ampath.net:Ampath3:50","vlan": "10-99"},
                {"port_id": "urn:sdx:port:sax.net:Sax01:50","vlan": "10-99"}
            ]
        }
        response = requests.post(api_url, json=payload)

Return code 201 should be obtained.
"201: L2VPN Service Created"

@gretelliz gretelliz changed the title End-to-end test fails when vlan is a range End-to-end test fails when trying to create a L2VPN with vlan as a range Jan 2, 2025
@YufengXin
Copy link
Collaborator

@gretelliz the range is supposed to ue ":" instead of "-", "10:19" would work fine

@gretelliz
Copy link
Author

@YufengXin You are right, the correct pattern is with ':'
Anyway, it still returns the same code (400) after fixing that problem.

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