network

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

README

Network package

Documentation

Overview

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Package network implements the go library for OPI to be used to establish networking

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvpnClient

type EvpnClient interface {

	// Logical Bridge interfaces
	CreateLogicalBridge(ctx context.Context, name string, vlanID uint32, vni uint32) (*pb.LogicalBridge, error)
	DeleteLogicalBridge(ctx context.Context, name string, allowMissing bool) (*emptypb.Empty, error)
	GetLogicalBridge(ctx context.Context, name string) (*pb.LogicalBridge, error)
	ListLogicalBridges(ctx context.Context, pageSize int32, pageToken string) (*pb.ListLogicalBridgesResponse, error)
	UpdateLogicalBridge(ctx context.Context, name string, updateMask []string) (*pb.LogicalBridge, error)

	// Bridge Port Interfaces
	CreateBridgePort(ctx context.Context, name string, mac string, bridgePortType string, logicalBridges []string) (*pb.BridgePort, error)
	DeleteBridgePort(ctx context.Context, name string, allowMissing bool) (*emptypb.Empty, error)
	GetBridgePort(ctx context.Context, name string) (*pb.BridgePort, error)
	ListBridgePorts(ctx context.Context, pageSize int32, pageToken string) (*pb.ListBridgePortsResponse, error)
	UpdateBridgePort(ctx context.Context, name string, updateMask []string, allowMissing bool) (*pb.BridgePort, error)

	// VRF Interfaces
	CreateVrf(ctx context.Context, name string, vni uint32, loopback string, vtep string) (*pb.Vrf, error)
	DeleteVrf(ctx context.Context, name string, allowMissing bool) (*emptypb.Empty, error)
	GetVrf(ctx context.Context, name string) (*pb.Vrf, error)
	ListVrfs(ctx context.Context, pageSize int32, pageToken string) (*pb.ListVrfsResponse, error)
	UpdateVrf(ctx context.Context, name string, updateMask []string, allowMissing bool) (*pb.Vrf, error)

	// SVI Interfaces
	CreateSvi(ctx context.Context, name string, vrf string, logicalBridge string, mac string, gwIPs []string, ebgp bool, remoteAS uint32) (*pb.Svi, error)
	DeleteSvi(ctx context.Context, name string, allowMissing bool) (*emptypb.Empty, error)
	GetSvi(ctx context.Context, name string) (*pb.Svi, error)
	ListSvis(ctx context.Context, pageSize int32, pageToken string) (*pb.ListSvisResponse, error)
	UpdateSvi(ctx context.Context, name string, updateMask []string, allowMissing bool) (*pb.Svi, error)
}

EvpnClient is an interface for querying evpn data from an OPI server

func NewBridgePort

func NewBridgePort(addr string) (EvpnClient, error)

NewBridgePort creates an evpn Bridge Port client for use with OPI server at the given address

func NewBridgePortWithArgs

func NewBridgePortWithArgs(c grpcOpi.Connector, getter PbEvpnBridgePortClientGetter) (EvpnClient, error)

NewBridgePortWithArgs creates an evpn Bridge Port client for use with OPI server using the given gRPC client and the given function for retrieving an evpn protobuf client

func NewLogicalBridge

func NewLogicalBridge(addr string) (EvpnClient, error)

NewLogicalBridge creates an evpn Logical Bridge client for use with OPI server at the given address

func NewLogicalBridgeWithArgs

func NewLogicalBridgeWithArgs(c grpcOpi.Connector, getter PbEvpnLogicalBridgeClientGetter) (EvpnClient, error)

NewLogicalBridgeWithArgs creates an evpn Logical Bridge client for use with OPI server using the given gRPC client and the given function for retrieving an evpn protobuf client

func NewSVI

func NewSVI(addr string) (EvpnClient, error)

NewSVI creates an evpn SVI client for use with OPI server at the given address

func NewSVIWithArgs

func NewSVIWithArgs(c grpcOpi.Connector, getter PbEvpnSVIClientGetter) (EvpnClient, error)

NewSVIWithArgs creates an evpn SVI client for use with OPI server using the given gRPC client and the given function for retrieving an evpn protobuf client

func NewVRF

func NewVRF(addr string) (EvpnClient, error)

NewVRF creates an evpn VRF client for use with OPI server at the given address

func NewVRFWithArgs

func NewVRFWithArgs(c grpcOpi.Connector, getter PbEvpnVRFClientGetter) (EvpnClient, error)

NewVRFWithArgs creates an evpn VRF client for use with OPI server using the given gRPC client and the given function for retrieving an evpn protobuf client

type PbEvpnBridgePortClientGetter

type PbEvpnBridgePortClientGetter func(c grpc.ClientConnInterface) pb.BridgePortServiceClient

PbEvpnBridgePortClientGetter defines the function type used to retrieve an evpn protobuf BridgePortServiceClient

type PbEvpnLogicalBridgeClientGetter

type PbEvpnLogicalBridgeClientGetter func(c grpc.ClientConnInterface) pb.LogicalBridgeServiceClient

PbEvpnLogicalBridgeClientGetter defines the function type used to retrieve an evpn protobuf LogicalBridgeServiceClient

type PbEvpnSVIClientGetter

type PbEvpnSVIClientGetter func(c grpc.ClientConnInterface) pb.SviServiceClient

PbEvpnSVIClientGetter defines the function type used to retrieve an evpn protobuf SviServiceClient

type PbEvpnVRFClientGetter

type PbEvpnVRFClientGetter func(c grpc.ClientConnInterface) pb.VrfServiceClient

PbEvpnVRFClientGetter defines the function type used to retrieve an evpn protobuf VrfServiceClient

Jump to

Keyboard shortcuts

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