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

interface_id #86

Open
YufengXin opened this issue Aug 2, 2023 · 0 comments
Open

interface_id #86

YufengXin opened this issue Aug 2, 2023 · 0 comments
Assignees

Comments

@YufengXin
Copy link

Cong tested and reports following:

It seems there needs consensus on the interface_id, which is the OF id from Kytos now. The SDX middleware is neutral on this, but it's really about what you want the end user sees and uses to specify the end points of a request.

curl -H 'Content-type: application/json' 'http://3.218.56.104:8181/api/kytos/mef_eline/v2/evc/' -d '{"name": "AMLIGHT_vlan_10001_10001", "dynamic_backup_path": true, "uni_a": {"tag": {"value": 107, "tag_type": 1}, "interface_id": "aa:00:00:00:00:00:00:03:50"}, "uni_z": {"tag": {"value": 107, "tag_type": 1}, "interface_id": "aa:00:00:00:00:00:00:01:40"}}'

But the interface_id is strange, And does not accept our sample topology (below).
{"name": "AMLIGHT_vlan_10001_10001", "dynamic_backup_path": true, "uni_a": {"tag": {"value": 107, "tag_type": 1}, "interface_id": "urn:sdx:port:amlight.net:B1:2"}, "uni_z": {"tag": {"value": 107, "tag_type": 1}, "interface_id": "urn:sdx:port:amlight.net:B2:3"}}
it says this:
{"description":"The request body contains invalid API data. 'urn:sdx:port:amlight.net:B1:2' does not match '^([0-9A-Fa-f]{2}[:-]){8}(\\d{1,5})

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

3 participants