nsxtypes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MPL-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EdgeUriFormat    = "%s/api/4.0/edges/"
	EdgeUriLocFormat = "%s/api/4.0/edges/%s"
)
View Source
const (
	EdgeDHCPUriFormat          = "%s/api/4.0/edges/%s/dhcp/config"
	EdgeDHCPAddIPPoolUriFormat = "%s/api/4.0/edges/%s/dhcp/config/ippools"
	EdgeDHCPDelIPPoolUriFormat = "%s/api/4.0/edges/%s/dhcp/config/ippools/%s"
)
View Source
const (
	EdgeDLRAddInterfacesUriFormat        = "%s/api/4.0/edges/%s/interfaces/?action=patch"
	EdgeDLRDelAllInterfacesUriFormat     = "%s/api/4.0/edges/%s/interfaces"
	EdgeDLRDelbyIndexInterfacesUriFormat = "%s/api/4.0/edges/%s/interfaces/?index=%s"
	EdgeDLRGetInterfaceUriFormat         = "%s/api/4.0/edges/%s/interfaces"
)
View Source
const (
	VirtualWireUriFormat = "%s/api/2.0/vdn/scopes/%s/virtualwires"
	NetworkLableFormat   = "vxw-%s-%s-sid-%s-%s"
	CpmUnicastMode       = "UNICAST_MODE"
	CpmHybridMode        = "HYBRID_MODE"
	CpmMulticastMode     = "MULTICAST_MODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddIPPoolToDHCPServiceResp

type AddIPPoolToDHCPServiceResp struct {
	Location string
}

type AddressGroup

type AddressGroup struct {
	PrimaryAddress string `xml:"primaryAddress"`
	SubnetMask     string `xml:"subnetMask"`
}

type Appliance

type Appliance struct {
	ResourcePoolId string `xml:"resourcePoolId"`
	DatastoreId    string `xml:"datastoreId"`
	Deployed       bool   `xml:"deployed,omitempty"`
}

type Appliances

type Appliances struct {
	AppliancesList   []Appliance `xml:"appliance"`
	DeployAppliances bool        `xml:"deployAppliances"`
	ApplianceSize    string      `xml:"applianceSize,omitempty"`
}

type ConfigDHCPServiceSpec

type ConfigDHCPServiceSpec struct {
	XMLName xml.Name    `xml:"dhcp"`
	IPPools []IPPool    `xml:"ipPools>ipPool"`
	Logging LoggingInfo `xml:"logging,omitempty"`
}

func NewConfigDHCPServiceSpec

func NewConfigDHCPServiceSpec() *ConfigDHCPServiceSpec

type DHCPConfig

type DHCPConfig struct {
	XMLName xml.Name    `xml:"dhcp"`
	Enabled bool        `xml:"enabled,omitempty"`
	IPPools []IPPool    `xml:"ipPools>ipPool"`
	Logging LoggingInfo `xml:"logging,omitempty"`
}

func NewDHCPConfig

func NewDHCPConfig() *DHCPConfig

type Edge

type Edge struct {
	XMLName     xml.Name   `xml:"edge"`
	Id          string     `xml:"id"`
	Version     string     `xml:"version"`
	Description string     `xml:"description"`
	Status      string     `xml:"status"`
	Tenant      string     `xml:"tenant"`
	Name        string     `xml:"name"`
	Appliances  Appliances `xml:"appliances"`
	Vnics       []Vnic     `xml:"vnics>vnic"`
	Type        string     `xml:"type"`
	Features    Features   `xml:"features"`
}

func NewEdge

func NewEdge() *Edge

type EdgeDLRAddInterfacesResp

type EdgeDLRAddInterfacesResp EdgeDLRInterfaces

func NewEdgeDLRAddInterfacesResp

func NewEdgeDLRAddInterfacesResp() *EdgeDLRAddInterfacesResp

type EdgeDLRAddInterfacesSpec

type EdgeDLRAddInterfacesSpec EdgeDLRInterfaces

func NewEdgeDLRAddInterfacesSpec

func NewEdgeDLRAddInterfacesSpec() *EdgeDLRAddInterfacesSpec

type EdgeDLRInterface

type EdgeDLRInterface struct {
	Label           string         `xml:"label,omitempty"`
	Name            string         `xml:"name,omitempty"`
	AddressGroups   []AddressGroup `xml:"addressGroups>addressGroup,omitempty"`
	Mtu             string         `xml:"mtu,omitempty"`
	Type            string         `xml:"type,omitempty"`
	IsConnected     bool           `xml:"isConnected,omitempty"`
	IsSharedNetwork bool           `xml:"isSharedNetwork,omitempty"`
	Index           string         `xml:"index,omitempty"`
	ConnectedToId   string         `xml:"connectedToId"`
	ConnectedToName string         `xml:"connectedToName"`
}

func NewEdgeDLRInterface

func NewEdgeDLRInterface() *EdgeDLRInterface

type EdgeDLRInterfaces

type EdgeDLRInterfaces struct {
	XMLName              xml.Name           `xml:"interfaces"`
	EdgeDLRInterfaceList []EdgeDLRInterface `xml:"interface"`
}

type EdgeInstallSpec

type EdgeInstallSpec struct {
	XMLName     xml.Name   `xml:"edge"`
	Datacenter  string     `xml:"datacenterName"`
	Name        string     `xml:"name,omitempty"`
	Description string     `xml:"description,omitempty"`
	Type        string     `xml:"type,omitempty"`
	Tenant      string     `xml:"tenant,omitempty"`
	Fqdn        string     `xml:"fqdn,omitempty"`
	VseLogLevel string     `xml:"vseLogLevel,omitempty"`
	EnableAesni bool       `xml:"enableAesni,omitempty"`
	EnableFips  bool       `xml:"enableFips,omitempty"`
	Appliances  Appliances `xml:"appliances"`
	Vnics       []Vnic     `xml:"vnics>vnic,omitempty"`
	Features    Features   `xml:"features"`
}

type EdgePostResp

type EdgePostResp struct {
	EdgeId   string
	Location string
}

type Features

type Features struct {
	Dhcp DHCPConfig `xml:"dhcp"`
}

type IPPool

type IPPool struct {
	XMLName             xml.Name `xml:"ipPool"`
	IPRange             string   `xml:"ipRange"`
	DefaultGw           string   `xml:"defaultGateway,omitempty"`
	SubnetMask          string   `xml:"subnetMask,omitempty"`
	DomainName          string   `xml:"domainName,omitempty"`
	PrimaryNameServer   string   `xml:"primaryNameServer,omitempty"`
	SecondaryNameServer string   `xml:"secondaryNameServer,omitempty"`
	LeaseTime           int      `xml:"leaseTime,omitempty"`
	AutoConfigureDNS    bool     `xml:"autoConfigureDNS,omitempty"`
	PoolId              string   `xml:"poolId,omitempty"`
	AllowHugeRange      bool     `xml:"allowHugeRange,omitempty"`
}

func NewDHCPIPPool

func NewDHCPIPPool() *IPPool

type LoggingInfo

type LoggingInfo struct {
	Enable   bool   `xml:"enable"`
	LogLevel string `xml:"logLevel,omitempty"`
}

type UpdateVirtualWire

type UpdateVirtualWire struct {
	XMLName          xml.Name `xml:"virtualWire"`
	Name             string   `xml:"name,omitempty"`
	TenantId         string   `xml:"tenantId,omitempty"`
	ControlPlaneMode string   `xml:"controlPlaneMode,omitempty"`
	Description      string   `xml:"description,omitempty"`
}

func NewUpdateVirtualWire

func NewUpdateVirtualWire() *UpdateVirtualWire

type VWCreateSpec

type VWCreateSpec struct {
	XMLName          xml.Name `xml:"virtualWireCreateSpec"`
	Name             string   `xml:"name,omitempty"`
	Description      string   `xml:"description,omitempty"`
	TenantId         string   `xml:"tenantId"`
	ControlPlaneMode string   `xml:"controlPlaneMode,omitempty"`
	GuestVlanAllowed bool     `xml:"guestVlanAllowed,omitempty"`
}

func NewVWCreateSpec

func NewVWCreateSpec() *VWCreateSpec

type VWPostResp

type VWPostResp struct {
	Location       string
	VirtualWireOID string
}

type VirtualWire

type VirtualWire struct {
	XMLName          xml.Name `xml:"virtualWire"`
	ObjectId         string   `xml:"objectId"`
	Name             string   `xml:"name"`
	TenantId         string   `xml:"tenantId"`
	SwitchOId        string   `xml:"vdsContextWithBacking>switch>objectId"`
	SwitchName       string   `xml:"vdsContextWithBacking>switch>name"`
	VdnId            string   `xml:"vdnId"`
	GuestVlanAllowed bool     `xml:"guestVlanAllowed"`
	ControlPlaneMode string   `xml:"controlPlaneMode"`
	Description      string   `xml:"description"`
}

func NewVirtualWire

func NewVirtualWire() *VirtualWire

type Vnic

type Vnic struct {
	Index         string         `xml:"index"`
	PortgroupId   string         `xml:"portgroupId,omitempty"`
	AddressGroups []AddressGroup `xml:"addressGroups>addressGroup,omitempty"`
	IsConnected   bool           `xml:"isConnected"`
	Mtu           string         `xml:"mtu,omitempty"`
	Type          string         `xml:"type,omitempty"`
}

Jump to

Keyboard shortcuts

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