srv6

package
v1.0.13 Latest Latest
Warning

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

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

Documentation

Overview

Package srv6 - parameters keys of SRV6 remote mechanism

Index

Constants

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

	// SrcHostIP -  src localsid of mgmt interface
	SrcHostIP = "src_host_ip"
	// DstHostIP -  dst localsid of mgmt interface
	DstHostIP = "dst_host_ip"
	// SrcBSID -  src BSID
	SrcBSID = "src_bsid"
	// DstBSID - dst BSID
	DstBSID = "dst_bsid"
	// SrcLocalSID -  src LocalSID
	SrcLocalSID = "src_localsid"
	// DstLocalSID - dst LocalSID
	DstLocalSID = "dst_localsid"
	// SrcHostLocalSID -  src host unique LocalSID
	SrcHostLocalSID = "src_host_localsid"
	// DstHostLocalSID - dst host unique LocalSID
	DstHostLocalSID = "dst_host_localsid"
	// SrcHardwareAddress -  src hw address
	SrcHardwareAddress = "src_hw_addr"
	// DstHardwareAddress - dst hw address
	DstHardwareAddress = "dst_hw_addr"

	// MTUOverhead - maximum transmission unit overhead for SRv6 encapsulation
	MTUOverhead = 40 // TODO: verify: this accomodates SRv6 header (8 bytes) + 2 SID IP (32 bytes)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mechanism

type Mechanism interface {
	// SrcHostIP -  src localsid of mgmt interface
	SrcHostIP() (string, error)
	// DstHostIP - dst localsid of mgmt interface
	DstHostIP() (string, error)
	// SrcBSID -  src BSID
	SrcBSID() (string, error)
	// DstBSID - dst BSID
	DstBSID() (string, error)
	// SrcLocalSID -  src LocalSID
	SrcLocalSID() (string, error)
	// DstLocalSID - dst LocalSID
	DstLocalSID() (string, error)
	// SrcHostLocalSID -  src host unique LocalSID
	SrcHostLocalSID() (string, error)
	// DstHostLocalSID - dst host unique LocalSID
	DstHostLocalSID() (string, error)
	// SrcHardwareAddress -  src hw address
	SrcHardwareAddress() (string, error)
	// DstHardwareAddress - dst hw address
	DstHardwareAddress() (string, error)
}

Mechanism - a vxlan mechanism utility wrapper

func ToMechanism

func ToMechanism(m *connection.Mechanism) Mechanism

ToMechanism - convert unified mechanism to useful wrapper

Jump to

Keyboard shortcuts

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