netconf

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAMConf

type IPAMConf struct {
	Type         string          `json:"type"`
	ServerSocket string          `json:"server_socket,omitempty"`
	Provider     string          `json:"provider,omitempty"`
	Routes       []request.Route `json:"routes,omitempty"`
}

type NetConf

type NetConf struct {
	types.NetConf
	ServerSocket string          `json:"server_socket,omitempty"`
	Provider     string          `json:"provider,omitempty"`
	Routes       []request.Route `json:"routes,omitempty"`
	IPAM         *IPAMConf       `json:"ipam,omitempty"`
	// PciAddrs in case of using sriov
	DeviceID string `json:"deviceID,omitempty"`
	VfDriver string `json:"vf_driver,omitempty"`
	// for dpdk
	VhostUserSocketVolumeName  string `json:"vhost_user_socket_volume_name,omitempty"`
	VhostUserSocketName        string `json:"vhost_user_socket_name,omitempty"`
	VhostUserSocketConsumption string `json:"vhost_user_socket_consumption,omitempty"`
}

func (*NetConf) MarshalJSON added in v1.13.0

func (c *NetConf) MarshalJSON() ([]byte, error)

func (*NetConf) PostLoad

func (c *NetConf) PostLoad()

Jump to

Keyboard shortcuts

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