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

[fix] Fixed deletion of VpnClient deleted all provisioned subnets #805

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

pandafy
Copy link
Member

@pandafy pandafy commented Aug 23, 2023

Bug:
When a device has more than 1 Vpn templates applied, then removing any one of the template deletes provisioned subnets for both VpnClients.

Fix:
Only delete the related provisioned subnets when VpnClient is deleted.

def test_multiple_vpnclient_delete(self):
"""
When a VpnClient object is deleted, it should only delete
only the related provisioned subnets.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only repeated twice here

Bug:
When a device has more than 1 Vpn templates applied, then removing
any one of the template deletes provisioned subnets for both
VpnClients.

Fix:
Only delete the related provisioned subnets when VpnClient is
deleted.
@pandafy pandafy force-pushed the fix-vpn-subnet-division-rule branch from 4f313cb to 65ca3b3 Compare August 24, 2023 07:09
@coveralls
Copy link

Coverage Status

coverage: 98.901%. remained the same when pulling 65ca3b3 on fix-vpn-subnet-division-rule into b6fda24 on master.

@nemesifier nemesifier merged commit 25f6a23 into master Aug 24, 2023
@nemesifier nemesifier deleted the fix-vpn-subnet-division-rule branch August 24, 2023 12:29
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

Successfully merging this pull request may close these issues.

3 participants