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
Click to show internal directories.
Click to hide internal directories.