vpp

package
v0.0.0-...-7cf7130 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) AddSession

func (c *Client) AddSession(ipv4 net.IP, iface uint32)

func (*Client) Close

func (c *Client) Close()

func (*Client) GetIfacesSwMap

func (c *Client) GetIfacesSwMap() map[int]Iface

func (*Client) Init

func (c *Client) Init(config *VPPConfig, ifacesFile string)

func (*Client) LoadIfacesConfig

func (c *Client) LoadIfacesConfig()

func (*Client) RemoveSession

func (c *Client) RemoveSession(ipv4 net.IP, iface uint32)

func (*Client) WriteIfacesConfig

func (c *Client) WriteIfacesConfig()

type Iface

type Iface struct {
	VPPSrcIface int
	IsSubIf     bool
	HasQinQ     bool
	OuterVLAN   int
	InnerVLAN   int
	MTU         uint32
	SwIf        int
	FlexId      string
}

CPE Interfaces

type VPPConfig

type VPPConfig struct {
	SrcVPPSocket      string
	UplinkIfaceName   string
	UplinkIfaceIPv4   string
	GatewayIfaceAddrs []string
	IPv4Pool          []string
	EnableProxyARP    bool
	TapIfaceName      string
	TapNetworkPrefix  string
}

VPP related configuration

Jump to

Keyboard shortcuts

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