vl3

package
v1.14.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Overview

Package vl3 provides chain elements that manage ipcontext of request for vL3 networks. Depends on `begin`, `metadata` chain elements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(chainContext context.Context, pool *IPAM) networkservice.NetworkServiceClient

NewClient - returns a new vL3 client instance that manages connection.context.ipcontext for vL3 scenario.

Produces refresh on prefix update.
Requires begin and metadata chain elements.

func NewServer

NewServer - returns a new vL3 server instance that manages connection.context.ipcontext for vL3 scenario.

Produces refresh on prefix update.
Requires begin and metdata chain elements.

Types

type IPAM added in v1.13.0

type IPAM struct {
	sync.Mutex
	// contains filtered or unexported fields
}

IPAM manages vl3 prefixes

func NewIPAM added in v1.13.0

func NewIPAM(prefix string, excludedPrefixes ...string) *IPAM

NewIPAM creates a new vl3 ipam with specified prefix and excluded prefixes

func (*IPAM) ContainsNetString added in v1.13.0

func (p *IPAM) ContainsNetString(ipNet string) bool

ContainsNetString checks if ippool contains net

func (*IPAM) Reset added in v1.13.0

func (p *IPAM) Reset(prefix string, excludePrefixes ...string) error

Reset resets IPAM's ippol by setting new prefix

func (*IPAM) Subscribe added in v1.13.0

func (p *IPAM) Subscribe(action func()) context.CancelFunc

Subscribe creates a subscription for receiving events about changed prefixes

Jump to

Keyboard shortcuts

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