vlan

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping map[uint16]uint32

Mapping holds the current mapping of VLAN-IDs to VNIs of the switch

func ReadMapping

func ReadMapping() (Mapping, error)

ReadMapping reads the current VLAN to VNI mapping with the help of netlink

func (Mapping) ReserveVlanIDs

func (m Mapping) ReserveVlanIDs(n uint16) ([]uint16, error)

ReserveVlanIDs tries to reserve n VLAN-IDs given the current switch configuration

Jump to

Keyboard shortcuts

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