9972f4ae5fb351080afed0593e9072744635c2b8,perfkitbenchmarker/alicloud/ali_network.py,AliNetwork,Create,#AliNetwork#,150
Before Change
@vm_util.Retry()
def Create(self):
Creates the actual network.
self.security_group.Create()
def Delete(self):
Deletes the actual network.
self.security_group.Delete()
After Change
@vm_util.Retry()
def Create(self):
Creates the network.
if self.use_vpc:
self.vpc.Create()
self.vpc._WaitForVpcStatus(["Available"])
if self.vswitch is None:
self.vswitch = AliVSwitch(self.name, self.zone, self.vpc.id)
self.vswitch.Create()
if self.security_group is None:
self.security_group = AliSecurityGroup(self.name,
self.region,
use_vpc=True,
vpc_id=self.vpc.id)
self.security_group.Create()
else:
self.security_group.Create()
def Delete(self):
Deletes the network.
if self.use_vpc:
self.security_group.Delete()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9972f4ae5fb351080afed0593e9072744635c2b8
Time: 2015-11-12
Author: gaolong.gl@alibaba-inc.com
File Name: perfkitbenchmarker/alicloud/ali_network.py
Class Name: AliNetwork
Method Name: Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 84f4e473147b487c1afeb352389df04ffb004bb8
Time: 2020-01-07
Author: 35934517+mjz-smu@users.noreply.github.com
File Name: perfkitbenchmarker/providers/gcp/gce_network.py
Class Name: GceNetwork
Method Name: Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 43204bd1a60db6c09ed0d548ad10ab2334bcc010
Time: 2019-10-18
Author: saksena@google.com
File Name: perfkitbenchmarker/providers/azure/azure_network.py
Class Name: AzureNetwork
Method Name: Create
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: decd259ed07364ac35fbf89626f2cf2ec0025d71
Time: 2019-10-02
Author: ssabhaya@google.com
File Name: perfkitbenchmarker/providers/aws/aws_network.py
Class Name: AwsNetwork
Method Name: Create