Open pandafy opened 9 months ago
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
There is a conflict with the specified templates. Invalid configuration triggered by "#/files", validator says:
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.
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).