vlan

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Overview

Package vlan provides helper methods for the Mechanism vlan

Index

Constants

View Source
const (
	// MECHANISM string
	MECHANISM = "VLAN"

	// ID - vlan ID
	ID = "vlan-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mechanism

type Mechanism struct {
	*networkservice.Mechanism
}

Mechanism - a vlan mechanism helper

func ToMechanism

func ToMechanism(m *networkservice.Mechanism) *Mechanism

ToMechanism - convert unified Mechanism to useful wrapper

func (*Mechanism) GetParameters

func (m *Mechanism) GetParameters() map[string]string

GetParameters returns the map of all parameters to the mechanism

func (*Mechanism) GetVlanID

func (m *Mechanism) GetVlanID() uint32

GetVlanID returns the VlanID parameter of the Mechanism

func (*Mechanism) SetVlanID

func (m *Mechanism) SetVlanID(vlanid uint32) *Mechanism

SetVlanID - set the VLAN ID and return the *vlan.Mechanism

Jump to

Keyboard shortcuts

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