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

SDX-controller is not deleting Links upon receiving the topology update #342

Open
gretelliz opened this issue Oct 18, 2024 · 3 comments
Open
Assignees

Comments

@gretelliz
Copy link

When trying to remove a link from the network, SDX does not reflect the change.

This is the topology before removing a link:

{'name': 'Tenet-OXP', 'id': 'urn:sdx:topology:tenet.ac.za', 'version': 9, 'timestamp': '2024-10-18T19:10:49Z', 'model_version': '2.0.0', 'nodes': [{'name': 'Tenet02', 'id': 'urn:sdx:node:tenet.ac.za:Tenet02', 'location': {'address': 'Johanesburgo', 'latitude': -26.0, 'longitude': 28.0, 'iso3166_2_lvl4': 'ZA-GP', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet02:41', 'name': 'Tenet02-eth41', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:port:sax.net:Sax02:41', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet02:1', 'name': 'Tenet02-eth1', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet02:50', 'name': 'Tenet02-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}, {'name': 'Tenet03', 'id': 'urn:sdx:node:tenet.ac.za:Tenet03', 'location': {'address': 'EastLondon', 'latitude': -33.0, 'longitude': 27.0, 'iso3166_2_lvl4': 'ZA-EC', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet03:50', 'name': 'Tenet03-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet03', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet03:2', 'name': 'Tenet03-eth2', 'node': 'urn:sdx:node:tenet.ac.za:Tenet03', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/2_Tenet03/2', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}, {'name': 'Tenet01', 'id': 'urn:sdx:node:tenet.ac.za:Tenet01', 'location': {'address': 'CapeTown', 'latitude': -33.0, 'longitude': 18.0, 'iso3166_2_lvl4': 'ZA-WC', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet01:41', 'name': 'Tenet01-eth41', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:port:sax.net:Sax01:41', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:1', 'name': 'Tenet01-eth1', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:2', 'name': 'Tenet01-eth2', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/2_Tenet03/2', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:50', 'name': 'Tenet01-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}], 'links': [{'name': 'Tenet01/1_Tenet02/1', 'id': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'ports': ['urn:sdx:port:tenet.ac.za:Tenet01:1', 'urn:sdx:port:tenet.ac.za:Tenet02:1'], 'type': 'intra', 'bandwidth': 10, 'residual_bandwidth': 100, 'latency': 0, 'packet_loss': 0, 'availability': 0, 'status': 'up', 'state': 'enabled', 'private': ['packet_loss']}, {'name': 'Tenet01/2_Tenet03/2', 'id': 'urn:sdx:link:tenet.ac.za:Tenet01/2_Tenet03/2', 'ports': ['urn:sdx:port:tenet.ac.za:Tenet01:2', 'urn:sdx:port:tenet.ac.za:Tenet03:2'], 'type': 'intra', 'bandwidth': 10, 'residual_bandwidth': 100, 'latency': 0, 'packet_loss': 0, 'availability': 0, 'status': 'up', 'state': 'enabled', 'private': ['packet_loss']}], 'services': ['l2vpn-ptp']}

This is the topology after removing a link:

{'name': 'Tenet-OXP', 'id': 'urn:sdx:topology:tenet.ac.za', 'version': 10, 'timestamp': '2024-10-18T19:12:09Z', 'model_version': '2.0.0', 'nodes': [{'name': 'Tenet02', 'id': 'urn:sdx:node:tenet.ac.za:Tenet02', 'location': {'address': 'Johanesburgo', 'latitude': -26.0, 'longitude': 28.0, 'iso3166_2_lvl4': 'ZA-GP', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet02:41', 'name': 'Tenet02-eth41', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:port:sax.net:Sax02:41', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet02:1', 'name': 'Tenet02-eth1', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet02:50', 'name': 'Tenet02-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet02', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}, {'name': 'Tenet03', 'id': 'urn:sdx:node:tenet.ac.za:Tenet03', 'location': {'address': 'EastLondon', 'latitude': -33.0, 'longitude': 27.0, 'iso3166_2_lvl4': 'ZA-EC', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet03:50', 'name': 'Tenet03-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet03', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet03:2', 'name': 'Tenet03-eth2', 'node': 'urn:sdx:node:tenet.ac.za:Tenet03', 'type': '10GE', 'status': 'down', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}, {'name': 'Tenet01', 'id': 'urn:sdx:node:tenet.ac.za:Tenet01', 'location': {'address': 'CapeTown', 'latitude': -33.0, 'longitude': 18.0, 'iso3166_2_lvl4': 'ZA-WC', 'private': []}, 'ports': [{'id': 'urn:sdx:port:tenet.ac.za:Tenet01:41', 'name': 'Tenet01-eth41', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:port:sax.net:Sax01:41', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:1', 'name': 'Tenet01-eth1', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:2', 'name': 'Tenet01-eth2', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'down', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}, {'id': 'urn:sdx:port:tenet.ac.za:Tenet01:50', 'name': 'Tenet01-eth50', 'node': 'urn:sdx:node:tenet.ac.za:Tenet01', 'type': '10GE', 'status': 'up', 'state': 'enabled', 'mtu': 1500, 'nni': '', 'services': {'l2vpn-ptp': {'vlan_range': [[1, 4095]]}}, 'private': ['status']}], 'status': 'up', 'state': 'enabled'}], 'links': [{'name': 'Tenet01/1_Tenet02/1', 'id': 'urn:sdx:link:tenet.ac.za:Tenet01/1_Tenet02/1', 'ports': ['urn:sdx:port:tenet.ac.za:Tenet01:1', 'urn:sdx:port:tenet.ac.za:Tenet02:1'], 'type': 'intra', 'bandwidth': 10, 'residual_bandwidth': 100, 'latency': 0, 'packet_loss': 0, 'availability': 0, 'status': 'up', 'state': 'enabled', 'private': ['packet_loss']}], 'services': ['l2vpn-ptp']}

The link Tenet01/2_Tenet03/2 was removed. However, this is not reflected in the topology that SDX controller exports.

@YufengXin
Copy link
Collaborator

@congwang09 @lmarinve you've tested the link removal/failure case, please comment here.

@gretelliz Thanks for reporting this. The event passes through from kytos->Napps->LC->controlller.

@YufengXin
Copy link
Collaborator

Closed with PR # #341

@italovalcy
Copy link
Contributor

Hi team, as we discussed on Slack, this issue was not actually fixed.

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

4 participants