network

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DVSwitch

type DVSwitch struct {
	Name           string `json:"name"`
	Uri            string `json:"uri"`
	Urn            string `json:"urn"`
	Description    string `json:"description"`
	IsIgmpSnooping bool   `json:"isIgmpSnooping"`
	Type           int    `json:"type"`
	PortGroupNum   int    `json:"portGroupNum"`
	QosType        int    `json:"qosType"`
	Mtu            int    `json:"mtu"`
}

type ListDVSwitchResponse

type ListDVSwitchResponse struct {
	DVSwitchs []DVSwitch `json:"dvSwitchs"`
}

type ListPortGroupResponse

type ListPortGroupResponse struct {
	PortGroups []PortGroup `json:"portGroups"`
}

type Manager

type Manager interface {
	ListDVSwitch() ([]DVSwitch, error)
	ListPortGroupBySwitch(dvSwitchIdUri string) ([]PortGroup, error)
	ListPortGroupInUseIp(portGroupUrn string) ([]string, error)
	ListPortGroup() ([]PortGroup, error)
}

func NewManager

func NewManager(client client.FusionComputeClient, siteUri string) Manager

type PortGroup

type PortGroup struct {
	Urn               string `json:"urn"`
	Uri               string `json:"uri"`
	Name              string `json:"name"`
	Description       string `json:"description"`
	IsDhcpIsolation   bool   `json:"isDhcpIsolation"`
	VlanId            int    `json:"vlanId"`
	TxLimit           int    `json:"txLimit"`
	Priority          int    `json:"priority"`
	IsIpMacBind       bool   `json:"isIpMacBind"`
	PortType          int    `json:"portType"`
	TxPeakLimit       int    `json:"txPeakLimit"`
	TxBurstSize       int    `json:"txBurstSize"`
	RxLimit           int    `json:"rxLimit"`
	RxPeakLimit       int    `json:"rxPeakLimit"`
	RxBurstSize       int    `json:"rxBurstSize"`
	TxWeight          int    `json:"txWeight"`
	IpBcstSuppress    int    `json:"ipBcstSuppress"`
	IsCalcTCPCheckSum bool   `json:"isCalcTcpCheckSum"`
	IsQinQEnable      bool   `json:"isQinQEnable"`
}

Jump to

Keyboard shortcuts

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