dcnm

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 GetID added in v1.1.0

func GetID(description string) string

func GetStringInBetweenTwoString added in v1.1.0

func GetStringInBetweenTwoString(str string, startS string, endS string) (result string, found bool)

func IsEmpty added in v1.1.0

func IsEmpty() schema.SchemaValidateFunc

func Provider

func Provider() *schema.Provider

func ValidateSpaces added in v1.1.0

func ValidateSpaces(data string) bool

Types

type Config

type Config struct {
	Username   string
	Password   string
	URL        string
	IsInsecure bool
	ProxyURL   string
	Expiry     int
	Platform   string
}

func (Config) Valid

func (c Config) Valid() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL