Documentation
¶
Index ¶
- Constants
- func AddSubnet(client contrail.ApiClient, network *types.VirtualNetwork, prefix string) (bool, error)
- func CreateNetwork(client contrail.ApiClient, project_id, name string) (string, error)
- func CreateNetworkWithIpam(client contrail.ApiClient, project *types.Project, name string, ...) (string, error)
- func CreateNetworkWithSubnet(client contrail.ApiClient, project_id, name, prefix string) (string, error)
- func CreateProject(client contrail.ApiClient, name string, createIpam bool) (string, error)
- func DeleteProject(client contrail.ApiClient, project_id string) error
- func GetProjectFQN(client contrail.ApiClient, projectName string, projectId string) ([]string, error)
- func GetProjectId(client contrail.ApiClient, project_name string, project_id string) (string, error)
- func IsUuid(value string) bool
- func RemoveSubnet(client contrail.ApiClient, network *types.VirtualNetwork, prefix string) error
- type NetworkInfo
Constants ¶
View Source
const IpAddressPattern = `([0-9]{1,3}\.){3}[0-9]{1,3}`
View Source
const UuidPattern = `([0-9a-z]{32})|([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})`
Variables ¶
This section is empty.
Functions ¶
func AddSubnet ¶
func AddSubnet( client contrail.ApiClient, network *types.VirtualNetwork, prefix string) ( bool, error)
AddSubnet returns true if the network was modified, false if the subnet already exists in the network.
func CreateNetwork ¶
func CreateNetworkWithIpam ¶
func CreateNetworkWithSubnet ¶
func CreateProject ¶
TODO: Create default security-group.
func GetProjectFQN ¶
func GetProjectId ¶
func RemoveSubnet ¶
Types ¶
type NetworkInfo ¶
type NetworkInfo struct {
Uuid string
Name string
AdminState bool
NetworkId int
Transit bool
Mode string
Subnets []string
Policies []string
RouteTargets []string
}
func NetworkList ¶
func NetworkShow ¶
Click to show internal directories.
Click to hide internal directories.