Skip to content

Commit

Permalink
Merge pull request #97 from avinetworks/18.2.2_resources_master
Browse files Browse the repository at this point in the history
AV-52945 AV-53557 Added resources for 18.2.2. Resolved terraform crash issues for pool server.
  • Loading branch information
Gaurav Rastogi authored Dec 24, 2018
2 parents 7861bc6 + be96289 commit d58ff8d
Show file tree
Hide file tree
Showing 237 changed files with 6,655 additions and 4,816 deletions.
6 changes: 6 additions & 0 deletions avi/datasource_avi_actiongroupconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func dataSourceAviActionGroupConfig() *schema.Resource {
"action_script_config_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"autoscale_trigger_notification": &schema.Schema{
Type: schema.TypeBool,
Expand All @@ -27,6 +28,7 @@ func dataSourceAviActionGroupConfig() *schema.Resource {
"email_config_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"external_only": &schema.Schema{
Type: schema.TypeBool,
Expand All @@ -43,18 +45,22 @@ func dataSourceAviActionGroupConfig() *schema.Resource {
"snmp_trap_profile_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"syslog_config_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
6 changes: 4 additions & 2 deletions avi/datasource_avi_alertconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ func dataSourceAviAlertConfig() *schema.Resource {
"action_group_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"alert_rule": &schema.Schema{
Type: schema.TypeSet,
Optional: true,

Elem: ResourceAlertRuleSchema(),
Elem: ResourceAlertRuleSchema(),
Set: func(v interface{}) int {
return 0
},
Expand Down Expand Up @@ -78,6 +78,7 @@ func dataSourceAviAlertConfig() *schema.Resource {
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"threshold": &schema.Schema{
Type: schema.TypeInt,
Expand All @@ -92,6 +93,7 @@ func dataSourceAviAlertConfig() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions avi/datasource_avi_alertemailconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func dataSourceAviAlertEmailConfig() *schema.Resource {
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"to_emails": &schema.Schema{
Type: schema.TypeString,
Expand All @@ -34,6 +35,7 @@ func dataSourceAviAlertEmailConfig() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_alertscriptconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func dataSourceAviAlertScriptConfig() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions avi/datasource_avi_alertsyslogconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ func dataSourceAviAlertSyslogConfig() *schema.Resource {
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
26 changes: 26 additions & 0 deletions avi/datasource_avi_analyticsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ func dataSourceAviAnalyticsProfile() *schema.Resource {
Optional: true,
Default: false,
},
"disable_vs_analytics": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Default: false,
},
"enable_advanced_analytics": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Default: true,
},
"exclude_client_close_before_request_as_error": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -186,6 +196,11 @@ func dataSourceAviAnalyticsProfile() *schema.Resource {
Optional: true,
Default: false,
},
"exclude_sip_error_codes": &schema.Schema{
Type: schema.TypeList,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeInt},
},
"exclude_syn_retransmit_as_error": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Expand All @@ -201,6 +216,11 @@ func dataSourceAviAnalyticsProfile() *schema.Resource {
Optional: true,
Default: false,
},
"healthscore_max_server_limit": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 20,
},
"hs_event_throttle_window": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -338,6 +358,11 @@ func dataSourceAviAnalyticsProfile() *schema.Resource {
return 0
},
},
"sip_log_depth": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 20,
},
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand All @@ -346,6 +371,7 @@ func dataSourceAviAnalyticsProfile() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions avi/datasource_avi_applicationpersistenceprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ func dataSourceAviApplicationPersistenceProfile() *schema.Resource {
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
9 changes: 9 additions & 0 deletions avi/datasource_avi_applicationprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ func dataSourceAviApplicationProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviApplicationProfileRead,
Schema: map[string]*schema.Schema{
"cloud_config_cksum": &schema.Schema{
Type: schema.TypeString,
Optional: true,
},
"created_by": &schema.Schema{
Type: schema.TypeString,
Optional: true,
},
"description": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -81,6 +89,7 @@ func dataSourceAviApplicationProfile() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions avi/datasource_avi_authprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func dataSourceAviAuthProfile() *schema.Resource {
"tenant_ref": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"type": &schema.Schema{
Type: schema.TypeString,
Expand All @@ -62,6 +63,7 @@ func dataSourceAviAuthProfile() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_autoscalelaunchconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func dataSourceAviAutoScaleLaunchConfig() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func dataSourceAviBackup() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_backupconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func dataSourceAviBackupConfiguration() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_certificatemanagementprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func dataSourceAviCertificateManagementProfile() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
9 changes: 9 additions & 0 deletions avi/datasource_avi_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ func dataSourceAviCloud() *schema.Resource {
Optional: true,
Default: false,
},
"gcp_configuration": &schema.Schema{
Type: schema.TypeSet,
Optional: true,
Elem: ResourceGCPConfigurationSchema(),
Set: func(v interface{}) int {
return 0
},
},
"ip6_autocfg_enabled": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -191,6 +199,7 @@ func dataSourceAviCloud() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"vca_configuration": &schema.Schema{
Type: schema.TypeSet,
Expand Down
9 changes: 9 additions & 0 deletions avi/datasource_avi_cloudconnectoruser.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ func dataSourceAviCloudConnectorUser() *schema.Resource {
return 0
},
},
"gcp_credentials": &schema.Schema{
Type: schema.TypeSet,
Optional: true,
Elem: ResourceGCPCredentialsSchema(),
Set: func(v interface{}) int {
return 0
},
},
"name": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -59,6 +67,7 @@ func dataSourceAviCloudConnectorUser() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_cloudproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func dataSourceAviCloudProperties() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func dataSourceAviCluster() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"virtual_ip": &schema.Schema{
Type: schema.TypeSet,
Expand Down
1 change: 1 addition & 0 deletions avi/datasource_avi_clusterclouddetails.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func dataSourceAviClusterCloudDetails() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
Expand Down
25 changes: 25 additions & 0 deletions avi/datasource_avi_controllerproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ func dataSourceAviControllerProperties() *schema.Resource {
Optional: true,
Default: 15,
},
"api_perf_logging_threshold": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 10000,
},
"appviewx_compat_mode": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -61,6 +66,11 @@ func dataSourceAviControllerProperties() *schema.Resource {
Optional: true,
Default: 60,
},
"cloud_reconcile": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Default: true,
},
"cluster_ip_gratuitous_arp_period": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -90,6 +100,11 @@ func dataSourceAviControllerProperties() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
},
"enable_api_sharding": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Default: true,
},
"enable_memory_balancer": &schema.Schema{
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -158,6 +173,10 @@ func dataSourceAviControllerProperties() *schema.Resource {
Optional: true,
Default: 300,
},
"se_from_marketplace": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Default: "IMAGE"},
"se_offline_del": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -216,6 +235,7 @@ func dataSourceAviControllerProperties() *schema.Resource {
"uuid": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"vnic_op_fail_time": &schema.Schema{
Type: schema.TypeInt,
Expand Down Expand Up @@ -268,6 +288,11 @@ func dataSourceAviControllerProperties() *schema.Resource {
Default: 120,
},
"warmstart_se_reconnect_wait_time": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 480,
},
"warmstart_vs_resync_wait_time": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 300,
Expand Down
Loading

0 comments on commit d58ff8d

Please sign in to comment.