nbi

package
v0.0.0-...-8f485f0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

* Copyright 2017-present Open Networking Foundation

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at

* http://www.apache.org/licenses/LICENSE-2.0

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2017-present Open Networking Foundation

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at

* http://www.apache.org/licenses/LICENSE-2.0

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2017-present Open Networking Foundation

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at

* http://www.apache.org/licenses/LICENSE-2.0

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalHandler

type BalHandler struct {
}

func NewBalHandler

func NewBalHandler() *BalHandler

func (*BalHandler) BalApiFinish

func (handler *BalHandler) BalApiFinish(
	ctx context.Context,
	request *bal.BalCfg,
) (*bal.BalErr, error)

func (*BalHandler) BalApiHeartbeat

func (handler *BalHandler) BalApiHeartbeat(
	ctx context.Context,
	request *bal.BalHeartbeat,
) (*bal.BalRebootState, error)

func (*BalHandler) BalApiInit

func (handler *BalHandler) BalApiInit(
	ctx context.Context,
	request *bal.BalInit,
) (*bal.BalErr, error)

func (*BalHandler) BalApiReboot

func (handler *BalHandler) BalApiReboot(
	ctx context.Context,
	request *bal.BalReboot,
) (*bal.BalErr, error)

func (*BalHandler) BalCfgClear

func (handler *BalHandler) BalCfgClear(
	ctx context.Context,
	request *bal.BalKey,
) (*bal.BalErr, error)

func (*BalHandler) BalCfgGet

func (handler *BalHandler) BalCfgGet(
	ctx context.Context,
	request *bal.BalKey,
) (*bal.BalCfg, error)

func (*BalHandler) BalCfgSet

func (handler *BalHandler) BalCfgSet(
	ctx context.Context,
	request *bal.BalCfg,
) (*bal.BalErr, error)

func (*BalHandler) BalCfgStatGet

func (handler *BalHandler) BalCfgStatGet(
	ctx context.Context,
	request *bal.BalInterfaceKey,
) (*bal.BalInterfaceStat, error)

type PonSimHandler

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

func NewPonSimHandler

func NewPonSimHandler(device core.PonSimInterface) *PonSimHandler

NewPonSimHandler instantiates a handler for a PonSim device

func (*PonSimHandler) GetDeviceInfo

func (handler *PonSimHandler) GetDeviceInfo(
	ctx context.Context,
	empty *empty.Empty,
) (*voltha.PonSimDeviceInfo, error)

GetDeviceInfo returns information of a PonSim device (OLT or ONU)

func (*PonSimHandler) GetStats

func (handler *PonSimHandler) GetStats(
	ctx context.Context,
	req *voltha.PonSimMetricsRequest,
) (*voltha.PonSimMetrics, error)

GetStats retrieves statistics for a PonSim device

func (*PonSimHandler) ReceiveFrames

func (handler *PonSimHandler) ReceiveFrames(empty *empty.Empty, stream voltha.PonSim_ReceiveFramesServer) error

ReceiveFrames handles a stream of INGRESS packets (i.e. OLT to VOLTHA)

func (*PonSimHandler) SendFrame

func (handler *PonSimHandler) SendFrame(ctx context.Context, data *voltha.PonSimFrame) (*empty.Empty, error)

SendFrame handles and forwards EGRESS packets (i.e. VOLTHA to OLT)

func (*PonSimHandler) UpdateFlowTable

func (handler *PonSimHandler) UpdateFlowTable(
	ctx context.Context,
	table *voltha.FlowTable,
) (*empty.Empty, error)

UpdateFlowTable populates and cleans up the flows for a PonSim device

type XPonSimHandler

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

func NewXPonSimHandler

func NewXPonSimHandler() *XPonSimHandler

func (*XPonSimHandler) CreateGemport

func (handler *XPonSimHandler) CreateGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) CreateInterface

func (handler *XPonSimHandler) CreateInterface(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) CreateMulticastDistributionSet

func (handler *XPonSimHandler) CreateMulticastDistributionSet(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) CreateMulticastGemport

func (handler *XPonSimHandler) CreateMulticastGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) CreateTcont

func (handler *XPonSimHandler) CreateTcont(
	ctx context.Context,
	config *voltha.TcontInterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) RemoveGemport

func (handler *XPonSimHandler) RemoveGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) RemoveInterface

func (handler *XPonSimHandler) RemoveInterface(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) RemoveMulticastDistributionSet

func (handler *XPonSimHandler) RemoveMulticastDistributionSet(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) RemoveMulticastGemport

func (handler *XPonSimHandler) RemoveMulticastGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) RemoveTcont

func (handler *XPonSimHandler) RemoveTcont(
	ctx context.Context,
	config *voltha.TcontInterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) UpdateGemport

func (handler *XPonSimHandler) UpdateGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) UpdateInterface

func (handler *XPonSimHandler) UpdateInterface(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) UpdateMulticastDistributionSet

func (handler *XPonSimHandler) UpdateMulticastDistributionSet(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) UpdateMulticastGemport

func (handler *XPonSimHandler) UpdateMulticastGemport(
	ctx context.Context,
	config *voltha.InterfaceConfig,
) (*empty.Empty, error)

func (*XPonSimHandler) UpdateTcont

func (handler *XPonSimHandler) UpdateTcont(
	ctx context.Context,
	config *voltha.TcontInterfaceConfig,
) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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