Skip to content

rmyers808/terraform-azurerm-stcv

 
 

Repository files navigation

Azure RM Spirent TestCenter Virtual Terraform

Description

Run STCv traffic generator instances with public and test networks.

Instances can be controlled by the Spirent TestCenter application.

Requirements

Name Version
terraform >= 0.13.0
azurerm >=2.37.0

Providers

Name Version
azurerm >=2.37.0

Modules

No Modules.

Resources

Name
azurerm_linux_virtual_machine
azurerm_network_interface
azurerm_network_interface_security_group_association
azurerm_network_security_group
azurerm_public_ip

Inputs

Name Description Type Default Required
admin_username Administrator user name. string "azureuser" no
enable_accelerated_networking Enable or disable accelerated networking on the network interface. bool "true" no
ingress_cidr_blocks List of management interface ingress IPv4/IPv6 CIDR ranges. list(string) n/a yes
instance_count Number of STCv instances to create. number 2 no
instance_name Name assigned to the instance. An instance number will be appended to the name. string "stcv" no
instance_size Specifies the size of the STCv VM instance. string "Standard_DS3_v2" no
marketplace_version The Spirent TestCenter Virtual image version (e.g. 5.15.0106). When not specified, the latest marketplace image will be used. string n/a yes
mgmt_plane_subnet_id Management public Azure subnet ID. string "" no
public_key File path to public key. string n/a yes
resource_group_location Resource group location in Azure. string "West US" no
resource_group_name Resource group name in Azure. string "default" no
test_plane_subnet_id Test or data plane Azure subnet ID. string "" no
user_data_file Path to the file containing user data for the instance. See README for Spirent TestCenter Virtual cloud-init configuration parameters that are supported. string n/a yes

Outputs

Name Description
instance_ids List of instance IDs
instance_private_ips List of private IP addresses assigned to the instances, if applicable
instance_public_ips List of public IP addresses assigned to the instances, if applicable

User Data (cloud-init)

Example

#cloud-config
spirent:
  driver: dpdk
  speed: 10G

Parameters

Name Description Type Default
speed Maximum network interface speed 1G, 5G, 10G, 25G, 50G, 100G 1G
driver Network driver interface sockets, dpdk dpdk (for supported cloud provider instances)
rxq RX queue size for dpdk driver 1-N 1
benchmark Turn benchmark rate mode on or off for dpdk driver off, on off
ntp NTP server IP address x.x.x.x (cloud provider recommended)
ipv4mode IPv4 address mode none, static, dhcp dhcp
ipaddress IPv4 address (static mode) IPv4 address -
netmask IPv4 netmask (static mode) IPv4 netmask -
gwaddress IPv4 gateway address (static mode) IPv4 gateway address -
ipv6mode IPv6 address mode none, static, dhcp none
ipv6address IPv6 address (static mode) IPv6 address -
ipv6prefixlen IPv6 prefix length (static mode) IPv6 prefix length -
ipv6gwaddress IPv6 gateway address (static mode) IPv6 gateway address -
gvtap Turn Gigamon gvtap agent on or off off, on off

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%