linklayerdevice

package
v0.0.0-...-0a271de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceType

type DeviceType int

DeviceType represents the type of a link layer device, as recorded in the link_layer_device_type lookup table.

const (
	DeviceTypeUnknown DeviceType = iota
	DeviceTypeLoopback
	DeviceTypeEthernet
	DeviceType8021q
	DeviceTypeBond
	DeviceTypeBridge
	DeviceTypeVXLAN
)

func MarshallDeviceType

func MarshallDeviceType(deviceType corenetwork.LinkLayerDeviceType) DeviceType

MarshallDeviceType converts a link layer device type to a db link layer device type id.

type VirtualPortType

type VirtualPortType int

VirtualPortType represents the type of a link layer device port, as recorded in the virtual_port_type lookup table.

const (
	NonVirtualPortType VirtualPortType = iota
	OpenVswitchVirtualPortType
)

func MarshallVirtualPortType

func MarshallVirtualPortType(portType corenetwork.VirtualPortType) VirtualPortType

MarshallVirtualPortType converts a virtual port type to a db virtual port type id.

Jump to

Keyboard shortcuts

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