@@ -721,6 +721,7 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
721
721
serviceNetworks = map [string ][]string {}
722
722
tenantNames = map [string ][]string {}
723
723
servicesPerTenant = map [string ]map [string ][]* container {}
724
+ pktTag = 0
724
725
)
725
726
726
727
numContainer := s .containers
@@ -749,13 +750,15 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
749
750
Subnet : fmt .Sprintf ("10.%d.%d.0/24" , tenantNum , networkNum ),
750
751
Gateway : fmt .Sprintf ("10.%d.%d.254" , tenantNum , networkNum ),
751
752
Encap : "vxlan" ,
753
+ PktTag : pktTag + 1000 ,
752
754
}
753
755
754
756
logrus .Infof ("Creating network %s on tenant %s" , network .NetworkName , network .TenantName )
755
757
756
758
c .Assert (s .cli .NetworkPost (network ), IsNil )
757
759
netNames = append (netNames , network .NetworkName )
758
760
tenantNames [tenantName ] = append (tenantNames [tenantName ], network .NetworkName )
761
+ pktTag ++
759
762
}
760
763
serviceNetworks [tenantName ] = s .createServiceNetworks (c , i , numSvcNet , tenantName )
761
764
}
@@ -851,7 +854,9 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
851
854
c .Assert (s .removeContainers (containers [network + tenant ]), IsNil )
852
855
c .Assert (s .cli .NetworkDelete (tenant , network ), IsNil )
853
856
}
854
-
857
+ if tenant != "default" {
858
+ c .Assert (s .cli .TenantDelete (tenant ), IsNil )
859
+ }
855
860
}
856
861
}
857
862
}
0 commit comments