Documentation ¶
Index ¶
- Constants
- Variables
- func CompareDiffs(old, new string, d *schema.ResourceData) bool
- func GetID(description string) string
- func GetStringInBetweenTwoString(str string, startS string, endS string) (result string, found bool)
- func IsEmpty() schema.SchemaValidateFunc
- func Provider() *schema.Provider
- func ValidateSpaces(data string) bool
- type Config
Constants ¶
View Source
const MAX_RETRY_CREATE int = 10
View Source
const MAX_RETRY_DEL int = 4
View Source
const POLICY_PREFIX string = "POLICY-"
Variables ¶
View Source
var TemplateURLS = map[string]map[string]string{
"dcnm": {
"Create": "/rest/config/templates/template?templateName=%s",
"Common": "/rest/config/templates/%s",
"Validate": "/rest/config/templates/validate",
},
"nd": {
"Create": "/appcenter/cisco/ndfc/api/v1/configtemplate/rest/config/templates/template?templateName=%s",
"Common": "/appcenter/cisco/ndfc/api/v1/configtemplate/rest/config/templates/%s",
"Validate": "/configtemplate/rest/config/templates/validate",
},
}
View Source
var URLS = map[string]map[string]string{
"DCNMUrl": {
"Create": "/appcenter/Cisco/elasticservice/elasticservice-api/fabrics/%s/service-nodes/%s/peerings",
"Common": "/appcenter/Cisco/elasticservice/elasticservice-api/fabrics/%s/service-nodes/%s/peerings/%s/%s",
"Deploy": "/appcenter/Cisco/elasticservice/elasticservice-api/fabrics/%s/service-nodes/%s/peerings/%s/deployments",
"Attach": "/appcenter/Cisco/elasticservice/elasticservice-api/fabrics/%s/service-nodes/%s/peerings/%s/attachments",
},
"NDUrl": {
"Create": "/appcenter/cisco/ndfc/api/v1/elastic-service/fabrics/%s/service-nodes/%s/peerings",
"Common": "/appcenter/cisco/ndfc/api/v1/elastic-service/fabrics/%s/service-nodes/%s/peerings/%s/%s",
"Deploy": "/appcenter/cisco/ndfc/api/v1/elastic-service/fabrics/%s/service-nodes/%s/peerings/%s/deployments",
"Attach": "/appcenter/cisco/ndfc/api/v1/elastic-service/fabrics/%s/service-nodes/%s/peerings/%s/attachments",
},
}
Functions ¶
func CompareDiffs ¶ added in v1.1.0
func CompareDiffs(old, new string, d *schema.ResourceData) bool
func GetStringInBetweenTwoString ¶ added in v1.1.0
func IsEmpty ¶ added in v1.1.0
func IsEmpty() schema.SchemaValidateFunc
func ValidateSpaces ¶ added in v1.1.0
Types ¶
Source Files ¶
- data_source_dcnm_interface.go
- data_source_dcnm_inventory.go
- data_source_dcnm_network.go
- data_source_dcnm_policy.go
- data_source_dcnm_route_peering.go
- data_source_dcnm_service_node.go
- data_source_dcnm_service_policy.go
- data_source_dcnm_template.go
- data_source_dcnm_vrf.go
- provider.go
- resource_dcnm_interface.go
- resource_dcnm_inventory.go
- resource_dcnm_network.go
- resource_dcnm_policy.go
- resource_dcnm_rest.go
- resource_dcnm_route_peering.go
- resource_dcnm_service_node.go
- resource_dcnm_service_policy.go
- resource_dcnm_template.go
- resource_dcnm_vrf.go
- utils.go
Click to show internal directories.
Click to hide internal directories.