virtual_interface

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (err error)

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (err error)

Update is an operation which modifies the attributes of the specified

Types

type CreateOpts

type CreateOpts struct {
	TenantID          string `json:"tenant_id,omitempty"`
	Name              string `json:"name,omitempty"`
	Description       string `json:"description,omitempty"`
	DirectConnectID   string `json:"direct_connect_id"  required:"true"`
	VgwID             string `json:"vgw_id" required:"true"`
	Type              string `json:"type" required:"true"`
	ServiceType       string `json:"service_type" required:"true"`
	VLAN              int    `json:"vlan" required:"true"`
	Bandwidth         int    `json:"bandwidth" required:"true"`
	LocalGatewayV4IP  string `json:"local_gateway_v4_ip" required:"true"`
	RemoteGatewayV4IP string `json:"remote_gateway_v4_ip" required:"true"`
	RouteMode         string `json:"route_mode" required:"true"`
	BGPASN            int    `json:"bgp_asn,omitempty"`
	BGPMD5            string `json:"bgp_md5,omitempty"`
	RemoteEPGroupID   string `json:"remote_ep_group_id" required:"true"`
	AdminStateUp      bool   `json:"admin_state_up,omitempty"`
}

type ListOpts

type ListOpts struct {
	ID string `q:"id"`
}

type UpdateOpts

type UpdateOpts struct {
	// Provides supplementary information about the virtual interface.
	Description string `json:"description,omitempty"`
	// Specifies the virtual interface name.
	Name string `json:"name,omitempty"`
	// Specifies the virtual interface bandwidth.
	Bandwidth int `json:"bandwidth,omitempty"`
	// Specifies the ID of the remote endpoint group that records the CIDR blocks used by the on-premises network.
	RemoteEndpointGroupId string `json:"remote_ep_group_id,omitempty"`
}

UpdateOpts represents options for updating a Virtual Interface.

type VirtualInterface

type VirtualInterface struct {
	ID                  string `json:"id"`
	TenantID            string `json:"tenant_id"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	DirectConnectID     string `json:"direct_connect_id"`
	VgwID               string `json:"vgw_id"`
	Type                string `json:"type"`
	ServiceType         string `json:"service_type"`
	VLAN                int    `json:"vlan"`
	Bandwidth           int    `json:"bandwidth"`
	LocalGatewayV4IP    string `json:"local_gateway_v4_ip"`
	RemoteGatewayV4IP   string `json:"remote_gateway_v4_ip"`
	RouteMode           string `json:"route_mode"`
	BGPASN              int    `json:"bgp_asn"`
	BGPMD5              string `json:"bgp_md5"`
	RemoteEPGroupID     string `json:"remote_ep_group_id"`
	ServiceEPGroupID    string `json:"service_ep_group_id"`
	CreateTime          string `json:"create_time"`
	Status              string `json:"status"`
	AdminStateUp        bool   `json:"admin_state_up"`
	AddressFamily       string `json:"address_family"`
	EnableBFD           bool   `json:"enable_bfd"`
	HealthCheckSourceIP string `json:"health_check_source_ip"`
	RateLimit           bool   `json:"rate_limit"`
	RouteLimit          int    `json:"route_limit"`
	RegionID            string `json:"region_id"`
	EnableNQA           bool   `json:"enable_nqa"`
	EnableGRE           bool   `json:"enable_gre"`
	LocalGatewayV6IP    string `json:"local_gateway_v6_ip"`
	RemoteGatewayV6IP   string `json:"remote_gateway_v6_ip"`
	LocalGRETunnelIP    string `json:"local_gre_tunnel_ip"`
	RemoteGRETunnelIP   string `json:"remote_gre_tunnel_ip"`
	LagID               string `json:"lag_id"`
}

func Get

Get retrieves a particular virtual gateway based on its unique ID.

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]VirtualInterface, error)

Jump to

Keyboard shortcuts

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