-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
[bug] Deleting VPN template does not delete VpnClient objects #831
Comments
I found that it is possible to have two different VPN templates for the same VPN server object. But, it is not possible to apply both the templates on the same device, as the JSONSchema generates the following error
I think we should discourage using different templates for the same VPN server object on the same device using validation (we can create a separate issue for this). |
We should double check the working of the following code. I think, it is not getting triggered when the template object is deleted. openwisp-controller/openwisp_controller/config/base/config.py Lines 229 to 275 in 226442c
|
How to replicate
VpnClient.objects.count()
VpnClient.objects.count()
Expected outcome
The number of VpnClients is different in Step 1 and Step 6 should be same.
Actual outcome
The number of VpnClients is different in Step 1 and Step 6 (increased by one). It is because the deletion of VPN template didn't trigger deletion of related VpnClient objects (there is no direct relation).
The text was updated successfully, but these errors were encountered: