Comment 3 for bug 1070011

Revision history for this message
Ziba (z-launchpadrz) wrote :

Hi,
I wanted to share my development to fix this bug. Actually, I've only worked on this bug when a subnet is deleted. This is why you can find reference to subnetDetails in the neutron code. This would have to be changed.
I have made changed to python-neutronclient too. The method "delete_subnet" calls "show_subnet" to retrieve the tenant_id owning the subnet. Then the neutron Client sends this information to Neutron while deleting the subnet.
I have not commited my work on python-neutronclient because it does not pass the unit tests: Connection to Neutron Failed.
I guess that the call of the method "show_subnet" in the method "delete_subnet" has to be mocked but I don't know if I can change the unit tests.

I would be glad to get your point of views, comments...

Best regards,
Romain.