Documentation
¶
Index ¶
- Constants
- type AddIPPoolToDHCPServiceResp
- type AddressGroup
- type Appliance
- type Appliances
- type ConfigDHCPServiceSpec
- type DHCPConfig
- type Edge
- type EdgeDLRAddInterfacesResp
- type EdgeDLRAddInterfacesSpec
- type EdgeDLRInterface
- type EdgeDLRInterfaces
- type EdgeInstallSpec
- type EdgePostResp
- type Features
- type IPPool
- type LoggingInfo
- type UpdateVirtualWire
- type VWCreateSpec
- type VWPostResp
- type VirtualWire
- type Vnic
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 Appliances ¶
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"`
}
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"`
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 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 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 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
Click to show internal directories.
Click to hide internal directories.