Skip to content

Commit

Permalink
fix: clean vlan subnet after clean vpc
Browse files Browse the repository at this point in the history
Signed-off-by: bobz965 <[email protected]>
  • Loading branch information
zbb88888 committed Dec 1, 2023
1 parent 974f507 commit c48e70c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/e2e/ovn-vpc-nat-gw/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,16 +455,18 @@ var _ = framework.Describe("[group:ovn-vpc-nat-gw]", func() {
subnetClient.DeleteSync(noBfdExtraSubnetName)
ginkgo.By("Deleting subnet " + bfdSubnetName)
subnetClient.DeleteSync(bfdSubnetName)
ginkgo.By("Deleting underlay subnet " + underlaySubnetName)
subnetClient.DeleteSync(underlaySubnetName)
ginkgo.By("Deleting extra underlay subnet " + underlayExtraSubnetName)
subnetClient.DeleteSync(underlayExtraSubnetName)

ginkgo.By("Deleting no bfd custom vpc " + noBfdVpcName)
vpcClient.DeleteSync(noBfdVpcName)
ginkgo.By("Deleting bfd custom vpc " + bfdVpcName)
vpcClient.DeleteSync(bfdVpcName)

ginkgo.By("Deleting underlay vlan subnet")
ginkgo.By("Deleting underlay subnet " + underlaySubnetName)
subnetClient.DeleteSync(underlaySubnetName)
ginkgo.By("Deleting extra underlay subnet " + underlayExtraSubnetName)
subnetClient.DeleteSync(underlayExtraSubnetName)

ginkgo.By("Deleting vlan " + vlanName)
vlanClient.Delete(vlanName, metav1.DeleteOptions{})

Expand Down

0 comments on commit c48e70c

Please sign in to comment.