-
Notifications
You must be signed in to change notification settings - Fork 3
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
SDX-Controller should display vlan field for a connection/l2vpn instead of vlan_range #314
Comments
Fix to support the AtlanticWave-SDX Provisioning specification 1.0. |
I have been looking into this. Basically, in sdx-controller/sdx_controller/controllers/l2vpn_controller.py Lines 80 to 83 in c906388
What gets inserted in sdx-controller/sdx_controller/controllers/l2vpn_controller.py Lines 136 to 139 in c906388
@italovalcy, could you please share some more details? What was the connection request, and what are the topologies? And what should be really the behavior of |
Also inviting @congwang09 and @YufengXin to the discussion. |
@italovalcy @YufengXin @congwang09 Please correct me if I am wrong: according to my reading of the service provisioning spec, So the response should be in accordance with what's in the spec, correct? I am copying the example response from the spec: {
"c73da8e1-5d03-4620-a1db-7cdf23e8978c": {
"service_id": "c73da8e1-5d03-4620-a1db-7cdf23e8978c",
"name": "VLAN between AMPATH/300 and TENET/150",
"endpoints": [
{"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50", "vlan": "150"},
{"port_id": "urn:sdx:port:ampath.net:Ampath3:50", "vlan": "300"}
],
"description": "This is an example to demonstrate a L2VPN with optional attributes",
"qos_metrics": {
"min_bw": {
"value": 5,
"strict": false
},
"max_delay": {
"value": 150,
"strict": true
}
},
"notifications": [
{"email": "[email protected]"},
{"email": "[email protected]"}
],
"ownership": "user1",
"creation_date": "20240522T00:00:00Z",
"archived_date": "0",
"status": "up",
"state": "enabled",
"counters_location": "https://my.aw-sdx.net/l2vpn/7cdf23e8978c",
"last_modified": "0",
"current_path": ["urn:sdx:link:tenet.ac.za:LinkToAmpath"],
"oxp_service_ids": {
"ampath.net": ["c73da8e1"],
"tenet.ac.za": ["5d034620"]
}
}
} Implementing the whole thing would take some effort, I think. For example:
All those things calls for a meta issue. For the purpose of solving this specific issue, we could make sdx-controller send the minimum viable response: {
"c73da8e1-5d03-4620-a1db-7cdf23e8978c": {
"service_id": "c73da8e1-5d03-4620-a1db-7cdf23e8978c",
"name": "VLAN between AMPATH/300 and TENET/150",
"endpoints": [
{"port_id": "urn:sdx:port:tenet.ac.za:Tenet03:50", "vlan": "150"},
{"port_id": "urn:sdx:port:ampath.net:Ampath3:50", "vlan": "300"}
],
"description": "This is an example to demonstrate a L2VPN with optional attributes",
} What do you think? |
@sajith For this specific issue, the minimum response you suggested makes sense to me. Please go ahead to close this issue. Then we can open new issues to address the other issues, of which could be resolved are (1) oxp_service_id populated from xop-LC (2) I think 'current_path' means the list of breakdowns. @congwang09 these two are on your plate. Other fields, such as counter_locations, owners, soft or hard qos_metrics, need more clarification and are not ready to be implemented yet. @jab1982 |
According to the provisioning API spec, the Endpoint.VLAN should be called "vlan" instead of "vlan_range". For data input, it is already working fine. For displaying it is wrong (vlan_range).
Example:
Expected behavior:
In summary, two changes are needed:
vlan_range
tovlan
when displaying the L2VPNThe text was updated successfully, but these errors were encountered: