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

Auto updated assets for terraform eng #265

Merged
merged 1 commit into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions avi/data_source_avi_serviceenginegroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ func TestAVIDataSourceServiceEngineGroupBasic(t *testing.T) {
"avi_serviceenginegroup.testServiceEngineGroup", "sdb_pipeline_size", "100"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "sdb_scan_count", "1000"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "ignore_docker_mac_change", "true"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "se_emulated_cores", "0"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "se_dump_core_on_assert", "false"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "se_packet_buffer_max", "0"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "se_dp_if_state_poll_interval", "10"),
resource.TestCheckResourceAttr(
"avi_serviceenginegroup.testServiceEngineGroup", "baremetal_dispatcher_handles_flows", "false"),
),
},
},
Expand Down Expand Up @@ -249,6 +261,12 @@ resource "avi_serviceenginegroup" "testServiceEngineGroup" {
sdb_flush_interval = "100"
sdb_pipeline_size = "100"
sdb_scan_count = "1000"
ignore_docker_mac_change = true
se_emulated_cores = "0"
se_dump_core_on_assert = false
se_packet_buffer_max = "0"
se_dp_if_state_poll_interval = "10"
baremetal_dispatcher_handles_flows = false
}

data "avi_serviceenginegroup" "testServiceEngineGroup" {
Expand Down
1 change: 0 additions & 1 deletion avi/data_source_avi_wafprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4019,7 +4019,6 @@ EOF
}
config {
regex_match_limit = "1500"
allowed_request_content_types = ["application/x-www-form-urlencoded","multipart/form-data","text/xml","application/xml","application/x-amf","application/json"]
allowed_methods = ["HTTP_METHOD_GET","HTTP_METHOD_HEAD","HTTP_METHOD_POST","HTTP_METHOD_OPTIONS"]
content_type_mappings {
content_type = "application/x-www-form-urlencoded"
Expand Down
5 changes: 5 additions & 0 deletions avi/datasource_avi_authprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func dataSourceAviAuthProfile() *schema.Resource {
Optional: true,
Computed: true,
},
"oauth_profile": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceOAuthProfileSchema(),
},
"pa_agent_ref": {
Type: schema.TypeString,
Computed: true,
Expand Down
20 changes: 20 additions & 0 deletions avi/datasource_avi_healthmonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ func dataSourceAviHealthMonitor() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"ftp_monitor": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceHealthMonitorFtpSchema(),
},
"ftps_monitor": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceHealthMonitorFtpSchema(),
},
"http_monitor": {
Type: schema.TypeSet,
Computed: true,
Expand All @@ -69,6 +79,16 @@ func dataSourceAviHealthMonitor() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"ldap_monitor": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceHealthMonitorLdapSchema(),
},
"ldaps_monitor": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceHealthMonitorLdapSchema(),
},
"markers": {
Type: schema.TypeList,
Computed: true,
Expand Down
39 changes: 39 additions & 0 deletions avi/datasource_avi_licensestatus.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0

package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

func dataSourceAviLicenseStatus() *schema.Resource {
return &schema.Resource{
Read: ResourceAviLicenseStatusRead,
Schema: map[string]*schema.Schema{
"configpb_attributes": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceConfigPbAttributesSchema(),
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"saas_status": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceSaasLicensingStatusSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}
37 changes: 37 additions & 0 deletions avi/datasource_avi_serviceenginegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"baremetal_dispatcher_handles_flows": {
Type: schema.TypeString,
Computed: true,
},
"bgp_peer_monitor_failover_enabled": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -334,10 +338,18 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"hybrid_rss_mode": {
Type: schema.TypeString,
Computed: true,
},
"hypervisor": {
Type: schema.TypeString,
Computed: true,
},
"ignore_docker_mac_change": {
Type: schema.TypeString,
Computed: true,
},
"ignore_rtt_threshold": {
Type: schema.TypeString,
Computed: true,
Expand All @@ -364,6 +376,11 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Computed: true,
Elem: ResourceIptableRuleSetSchema(),
},
"kni_allowed_server_ports": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceKniPortRangeSchema(),
},
"l7_conns_per_core": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -584,6 +601,10 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"num_dispatcher_queues": {
Type: schema.TypeString,
Computed: true,
},
"num_flow_cores_sum_changes_to_ignore": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -680,6 +701,10 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"se_dp_if_state_poll_interval": {
Type: schema.TypeString,
Computed: true,
},
"se_dp_isolation": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -724,6 +749,14 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"se_dump_core_on_assert": {
Type: schema.TypeString,
Computed: true,
},
"se_emulated_cores": {
Type: schema.TypeString,
Computed: true,
},
"se_flow_probe_retries": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -781,6 +814,10 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"se_packet_buffer_max": {
Type: schema.TypeString,
Computed: true,
},
"se_pcap_lookahead": {
Type: schema.TypeString,
Computed: true,
Expand Down
55 changes: 55 additions & 0 deletions avi/datasource_avi_statediffoperation.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0

package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

func dataSourceAviStatediffOperation() *schema.Resource {
return &schema.Resource{
Read: ResourceAviStatediffOperationRead,
Schema: map[string]*schema.Schema{
"configpb_attributes": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceConfigPbAttributesSchema(),
},
"events": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceStatediffEventSchema(),
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"node_uuid": {
Type: schema.TypeString,
Computed: true,
},
"operation": {
Type: schema.TypeString,
Computed: true,
},
"phase": {
Type: schema.TypeString,
Computed: true,
},
"status": {
Type: schema.TypeString,
Computed: true,
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}
92 changes: 92 additions & 0 deletions avi/datasource_avi_statediffsnapshot.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0

package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

func dataSourceAviStatediffSnapshot() *schema.Resource {
return &schema.Resource{
Read: ResourceAviStatediffSnapshotRead,
Schema: map[string]*schema.Schema{
"configpb_attributes": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceConfigPbAttributesSchema(),
},
"gslb_name": {
Type: schema.TypeString,
Computed: true,
},
"gslb_uuid": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"pool_name": {
Type: schema.TypeString,
Computed: true,
},
"pool_uuid": {
Type: schema.TypeString,
Computed: true,
},
"post_snapshot": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourcepostsnapshotSchema(),
},
"pre_snapshot": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourcepresnapshotSchema(),
},
"se_group_name": {
Type: schema.TypeString,
Computed: true,
},
"se_group_uuid": {
Type: schema.TypeString,
Computed: true,
},
"se_name": {
Type: schema.TypeString,
Computed: true,
},
"se_uuid": {
Type: schema.TypeString,
Computed: true,
},
"snapshot_type": {
Type: schema.TypeString,
Computed: true,
},
"statediff_operation_ref": {
Type: schema.TypeString,
Computed: true,
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"vs_name": {
Type: schema.TypeString,
Computed: true,
},
"vs_uuid": {
Type: schema.TypeString,
Computed: true,
},
},
}
}
4 changes: 4 additions & 0 deletions avi/datasource_avi_upgradestatusinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ func dataSourceAviUpgradeStatusInfo() *schema.Resource {
Computed: true,
Elem: ResourceUpgradeOpsStateSchema(),
},
"statediff_ref": {
Type: schema.TypeString,
Computed: true,
},
"system": {
Type: schema.TypeString,
Computed: true,
Expand Down
5 changes: 5 additions & 0 deletions avi/datasource_avi_virtualservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ func dataSourceAviVirtualService() *schema.Resource {
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"oauth_vs_config": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceOAuthVSConfigSchema(),
},
"performance_limits": {
Type: schema.TypeSet,
Computed: true,
Expand Down
5 changes: 0 additions & 5 deletions avi/datasource_avi_wafpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ func dataSourceAviWafPolicy() *schema.Resource {
Computed: true,
Elem: ResourceWafRuleGroupSchema(),
},
"resolved_crs_groups": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceWafRuleGroupSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Expand Down
Loading