groupipam

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Overview

Package groupipam provides a networkservice.NetworkServiceServer chain element to handle a group of []*net.IPNet. The chain element should be used when the endpoint should assign a few addresses for the connection. By default `groupipam` uses `point2pointipam` to handle *net.IPNet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(groups [][]*net.IPNet, opts ...Option) networkservice.NetworkServiceServer

NewServer creates a new instance of groupipam chain element that handles a group of []*net.IPNet. Requires a group of []*net.IPNet. Options can be passed optionally

Types

type Option

type Option func(*options)

Option allows to change a default behavior

func WithCustomIPAMServer

func WithCustomIPAMServer(f func(...*net.IPNet) networkservice.NetworkServiceServer) Option

WithCustomIPAMServer replaces default `point2pointipam` to custom implementation

Jump to

Keyboard shortcuts

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