testing

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

subnets unit tests

Index

Constants

View Source
const SubnetCreateRequest = `` /* 503-byte string literal not displayed */
View Source
const SubnetCreateRequestWithNoCIDR = `` /* 276-byte string literal not displayed */
View Source
const SubnetCreateResult = `` /* 623-byte string literal not displayed */
View Source
const SubnetCreateWithDefaultGatewayRequest = `` /* 295-byte string literal not displayed */
View Source
const SubnetCreateWithDefaultGatewayResponse = `` /* 519-byte string literal not displayed */
View Source
const SubnetCreateWithIPv6RaAddressModeRequest = `` /* 268-byte string literal not displayed */
View Source
const SubnetCreateWithIPv6RaAddressModeResponse = `` /* 486-byte string literal not displayed */
View Source
const SubnetCreateWithNoGatewayRequest = `` /* 323-byte string literal not displayed */
View Source
const SubnetCreateWithNoGatewayResponse = `` /* 510-byte string literal not displayed */
View Source
const SubnetGetResult = `` /* 619-byte string literal not displayed */
View Source
const SubnetListResult = `` /* 2560-byte string literal not displayed */
View Source
const SubnetUpdateAllocationPoolRequest = `` /* 201-byte string literal not displayed */
View Source
const SubnetUpdateAllocationPoolResponse = `` /* 551-byte string literal not displayed */
View Source
const SubnetUpdateGatewayRequest = `
{
    "subnet": {
        "name": "my_new_subnet",
        "gateway_ip": "10.0.0.1"
    }
}
`
View Source
const SubnetUpdateGatewayResponse = `` /* 551-byte string literal not displayed */
View Source
const SubnetUpdateHostRoutesRequest = `` /* 193-byte string literal not displayed */
View Source
const SubnetUpdateHostRoutesResponse = `` /* 658-byte string literal not displayed */
View Source
const SubnetUpdateRemoveGatewayRequest = `
{
    "subnet": {
        "name": "my_new_subnet",
        "gateway_ip": null
    }
}
`
View Source
const SubnetUpdateRemoveGatewayResponse = `` /* 545-byte string literal not displayed */
View Source
const SubnetUpdateRemoveHostRoutesRequest = `
{
    "subnet": {
        "host_routes": []
    }
}
`
View Source
const SubnetUpdateRemoveHostRoutesResponse = `` /* 545-byte string literal not displayed */
View Source
const SubnetUpdateRequest = `` /* 157-byte string literal not displayed */
View Source
const SubnetUpdateResponse = `` /* 551-byte string literal not displayed */

Variables

View Source
var Subnet1 = subnets.Subnet{
	Name:           "private-subnet",
	EnableDHCP:     true,
	NetworkID:      "db193ab3-96e3-4cb3-8fc5-05f4296d0324",
	TenantID:       "26a7980765d0414dbc1fc1f88cdb7e6e",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "10.0.0.2",
			End:   "10.0.0.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "10.0.0.1",
	CIDR:       "10.0.0.0/24",
	ID:         "08eae331-0402-425a-923c-34f7cfe39c1b",
}
View Source
var Subnet2 = subnets.Subnet{
	Name:           "my_subnet",
	EnableDHCP:     true,
	NetworkID:      "d32019d3-bc6e-4319-9c1d-6722fc136a22",
	TenantID:       "4fd44f30292945e481c7b8a0c8908869",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "192.0.0.2",
			End:   "192.255.255.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "192.0.0.1",
	CIDR:       "192.0.0.0/8",
	ID:         "54d6f61d-db07-451c-9ab3-b9609b6b6f0b",
}
View Source
var Subnet3 = subnets.Subnet{
	Name:           "my_gatewayless_subnet",
	EnableDHCP:     true,
	NetworkID:      "d32019d3-bc6e-4319-9c1d-6722fc136a23",
	TenantID:       "4fd44f30292945e481c7b8a0c8908869",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "192.168.1.2",
			End:   "192.168.1.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "",
	CIDR:       "192.168.1.0/24",
	ID:         "54d6f61d-db07-451c-9ab3-b9609b6b6f0c",
}
View Source
var Subnet4 = subnets.Subnet{
	Name:           "my_subnet_with_subnetpool",
	EnableDHCP:     false,
	NetworkID:      "d32019d3-bc6e-4319-9c1d-6722fc136a23",
	TenantID:       "4fd44f30292945e481c7b8a0c8908869",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "10.11.12.2",
			End:   "10.11.12.254",
		},
	},
	HostRoutes:   []subnets.HostRoute{},
	IPVersion:    4,
	GatewayIP:    "",
	CIDR:         "10.11.12.0/24",
	ID:           "38186a51-f373-4bbc-838b-6eaa1aa13eac",
	SubnetPoolID: "b80340c7-9960-4f67-a99c-02501656284b",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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