ipaddress

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Overview

Package ipaddress provides networkservice chain elements to set the ip address on vpp interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceClient

NewClient creates a NetworkServiceClient chain element to set the ip address on a vpp interface It sets the IP Address on the *vpp* side of an interface leaving the Endpoint.

           Endpoint
+---------------------------+
|                           |
|                           |
|                           |
|                           |
|                           |
|                           |
|                           |
|      ipaddress.NewClient()+-------------------+
|                           |
|                           |
|                           |
|                           |
|                           |
|                           |
|                           |
+---------------------------+

func NewServer

func NewServer(vppConn api.Connection, opts ...Option) networkservice.NetworkServiceServer

NewServer creates a NetworkServiceServer chain element to set the ip address on a vpp interface It sets the IP Address on the *vpp* side of an interface plugged into the Endpoint.

                               Endpoint
                    +---------------------------+
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
+-------------------+ ipaddress.NewServer()     |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    |                           |
                    +---------------------------+

Types

type Option added in v1.1.0

type Option func(o *options)

Option is an option pattern for ipaddressClient/Server

func WithLoadSwIfIndex added in v1.1.0

func WithLoadSwIfIndex(f ifIndexFunc) Option

WithLoadSwIfIndex - sets function to load the interface index

Jump to

Keyboard shortcuts

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