Documentation ¶
Index ¶
- Constants
- func ConvB2S(b []byte) string
- func StartRestGatewayService(channel chan bool, group *sync.WaitGroup, grpcAddress string, ...)
- type BBSimLegacyServer
- func (s BBSimLegacyServer) GenerateOLTAlarm(ctx context.Context, in *legacy.OLTAlarmRequest) (*legacy.BBSimResponse, error)
- func (s BBSimLegacyServer) GenerateONUAlarm(ctx context.Context, in *legacy.ONUAlarmRequest) (*legacy.BBSimResponse, error)
- func (s BBSimLegacyServer) GetFlows(ctx context.Context, in *legacy.ONUInfo) (*legacy.Flows, error)
- func (s BBSimLegacyServer) OLTStatus(ctx context.Context, in *legacy.Empty) (*legacy.OLTStatusResponse, error)
- func (s BBSimLegacyServer) ONUActivate(ctx context.Context, in *legacy.ONURequest) (*legacy.BBSimResponse, error)
- func (s BBSimLegacyServer) ONUDeactivate(ctx context.Context, in *legacy.ONURequest) (*legacy.BBSimResponse, error)
- func (s BBSimLegacyServer) ONUStatus(ctx context.Context, in *legacy.ONURequest) (*legacy.ONUs, error)
- func (s BBSimLegacyServer) PerformDeviceAction(ctx context.Context, in *legacy.DeviceAction) (*legacy.BBSimResponse, error)
- func (s BBSimLegacyServer) PortStatus(ctx context.Context, in *legacy.PortInfo) (*legacy.Ports, error)
- type BBSimServer
- func (s BBSimServer) ChangeIgmpState(ctx context.Context, req *bbsim.IgmpRequest) (*bbsim.Response, error)
- func (s BBSimServer) GetFlows(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Flows, error)
- func (s BBSimServer) GetONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.ONU, error)
- func (s BBSimServer) GetONUs(ctx context.Context, req *bbsim.Empty) (*bbsim.ONUs, error)
- func (s BBSimServer) GetOlt(ctx context.Context, req *bbsim.Empty) (*bbsim.Olt, error)
- func (s BBSimServer) GetOnuServices(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Services, error)
- func (s BBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *bbsim.ONURequest) (*bbsim.ONUTrafficSchedulers, error)
- func (s BBSimServer) GetServices(ctx context.Context, req *bbsim.Empty) (*bbsim.Services, error)
- func (s BBSimServer) PoweronAllONUs(context.Context, *bbsim.Empty) (*bbsim.Response, error)
- func (s BBSimServer) PoweronONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
- func (s BBSimServer) PoweronONUsOnPON(ctx context.Context, req *bbsim.PONRequest) (*bbsim.Response, error)
- func (s BBSimServer) PoweronOlt(ctx context.Context, req *bbsim.Empty) (*bbsim.Response, error)
- func (s BBSimServer) RebootOlt(ctx context.Context, req *bbsim.Empty) (*bbsim.Response, error)
- func (s BBSimServer) RestartDhcp(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
- func (s BBSimServer) RestartEapol(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
- func (s BBSimServer) SetLogLevel(ctx context.Context, req *bbsim.LogLevel) (*bbsim.LogLevel, error)
- func (s BBSimServer) SetOltAlarmIndication(ctx context.Context, req *bbsim.OLTAlarmRequest) (*bbsim.Response, error)
- func (s BBSimServer) SetOnuAlarmIndication(ctx context.Context, req *bbsim.ONUAlarmRequest) (*bbsim.Response, error)
- func (s BBSimServer) ShutdownAllONUs(context.Context, *bbsim.Empty) (*bbsim.Response, error)
- func (s BBSimServer) ShutdownONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
- func (s BBSimServer) ShutdownONUsOnPON(ctx context.Context, req *bbsim.PONRequest) (*bbsim.Response, error)
- func (s BBSimServer) ShutdownOlt(ctx context.Context, req *bbsim.Empty) (*bbsim.Response, error)
- func (s BBSimServer) Version(ctx context.Context, req *bbsim.Empty) (*bbsim.VersionNumber, error)
Constants ¶
const ( RequestAccepted = "API request accepted" OLTNotEnabled = "OLT not enabled" RequestFailed = "API request failed" SoftReboot = "soft-reboot" HardReboot = "hard-reboot" DeviceTypeOlt = "olt" DeviceTypeOnu = "onu" )
Response Constants
const ( OltRebootDelay = 40 OnuSoftRebootDelay = 10 OnuHardRebootDelay = 30 )
Constants for reboot delays
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BBSimLegacyServer ¶ added in v0.0.5
type BBSimLegacyServer struct { }
func (BBSimLegacyServer) GenerateOLTAlarm ¶ added in v0.0.5
func (s BBSimLegacyServer) GenerateOLTAlarm(ctx context.Context, in *legacy.OLTAlarmRequest) (*legacy.BBSimResponse, error)
GenerateOLTAlarm RPC generates alarm for the OLT
func (BBSimLegacyServer) GenerateONUAlarm ¶ added in v0.0.5
func (s BBSimLegacyServer) GenerateONUAlarm(ctx context.Context, in *legacy.ONUAlarmRequest) (*legacy.BBSimResponse, error)
GenerateONUAlarm RPC generates alarm for the onu
func (BBSimLegacyServer) GetFlows ¶ added in v0.0.5
GetFlows returns all flows or flows for specified ONU
func (BBSimLegacyServer) OLTStatus ¶ added in v0.0.5
func (s BBSimLegacyServer) OLTStatus(ctx context.Context, in *legacy.Empty) (*legacy.OLTStatusResponse, error)
OLTStatus method returns the OLT status.
func (BBSimLegacyServer) ONUActivate ¶ added in v0.0.5
func (s BBSimLegacyServer) ONUActivate(ctx context.Context, in *legacy.ONURequest) (*legacy.BBSimResponse, error)
ONUActivate method handles ONU activate requests from user.
func (BBSimLegacyServer) ONUDeactivate ¶ added in v0.0.5
func (s BBSimLegacyServer) ONUDeactivate(ctx context.Context, in *legacy.ONURequest) (*legacy.BBSimResponse, error)
ONUDeactivate method handles ONU deactivation request.
func (BBSimLegacyServer) ONUStatus ¶ added in v0.0.5
func (s BBSimLegacyServer) ONUStatus(ctx context.Context, in *legacy.ONURequest) (*legacy.ONUs, error)
ONUStatus method returns ONU status.
func (BBSimLegacyServer) PerformDeviceAction ¶ added in v0.0.5
func (s BBSimLegacyServer) PerformDeviceAction(ctx context.Context, in *legacy.DeviceAction) (*legacy.BBSimResponse, error)
PerformDeviceAction rpc take the device request and performs OLT and ONU hard and soft reboot
func (BBSimLegacyServer) PortStatus ¶ added in v0.0.5
func (s BBSimLegacyServer) PortStatus(ctx context.Context, in *legacy.PortInfo) (*legacy.Ports, error)
PortStatus method returns Port status.
type BBSimServer ¶
type BBSimServer struct { }
func (BBSimServer) ChangeIgmpState ¶ added in v0.0.15
func (s BBSimServer) ChangeIgmpState(ctx context.Context, req *bbsim.IgmpRequest) (*bbsim.Response, error)
func (BBSimServer) GetFlows ¶ added in v0.0.18
func (s BBSimServer) GetFlows(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Flows, error)
GetFlows for OLT/ONUs
func (BBSimServer) GetONU ¶
func (s BBSimServer) GetONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.ONU, error)
func (BBSimServer) GetOnuServices ¶ added in v1.0.0
func (s BBSimServer) GetOnuServices(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Services, error)
func (BBSimServer) GetOnuTrafficSchedulers ¶ added in v0.0.18
func (s BBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *bbsim.ONURequest) (*bbsim.ONUTrafficSchedulers, error)
func (BBSimServer) GetServices ¶ added in v1.0.0
func (BBSimServer) PoweronAllONUs ¶ added in v0.0.19
PoweronAllONUs simulates ONU power on for all ONUs on all PON ports
func (BBSimServer) PoweronONU ¶
func (s BBSimServer) PoweronONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
PoweronONU simulates ONU power on and start sending discovery indications to VOLTHA
func (BBSimServer) PoweronONUsOnPON ¶ added in v0.0.19
func (s BBSimServer) PoweronONUsOnPON(ctx context.Context, req *bbsim.PONRequest) (*bbsim.Response, error)
PoweronONUsOnPON simulates ONU power on for all ONUs under specified PON port
func (BBSimServer) PoweronOlt ¶ added in v0.0.7
func (BBSimServer) RestartDhcp ¶ added in v0.0.5
func (s BBSimServer) RestartDhcp(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
func (BBSimServer) RestartEapol ¶ added in v0.0.5
func (s BBSimServer) RestartEapol(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
func (BBSimServer) SetLogLevel ¶
func (BBSimServer) SetOltAlarmIndication ¶ added in v0.0.18
func (s BBSimServer) SetOltAlarmIndication(ctx context.Context, req *bbsim.OLTAlarmRequest) (*bbsim.Response, error)
SetOltAlarmIndication generates OLT Alarms for LOS
func (BBSimServer) SetOnuAlarmIndication ¶ added in v0.0.18
func (s BBSimServer) SetOnuAlarmIndication(ctx context.Context, req *bbsim.ONUAlarmRequest) (*bbsim.Response, error)
func (BBSimServer) ShutdownAllONUs ¶ added in v0.0.19
ShutdownAllONUs sends DyingGasp indication for all ONUs and mark ONUs as disabled.
func (BBSimServer) ShutdownONU ¶
func (s BBSimServer) ShutdownONU(ctx context.Context, req *bbsim.ONURequest) (*bbsim.Response, error)
ShutdownONU sends DyingGasp indication for specified ONUs and mark ONUs as disabled.
func (BBSimServer) ShutdownONUsOnPON ¶ added in v0.0.19
func (s BBSimServer) ShutdownONUsOnPON(ctx context.Context, req *bbsim.PONRequest) (*bbsim.Response, error)
ShutdownONUsOnPON sends DyingGasp indication for all ONUs under specified PON port
func (BBSimServer) ShutdownOlt ¶ added in v0.0.7
func (BBSimServer) Version ¶
func (s BBSimServer) Version(ctx context.Context, req *bbsim.Empty) (*bbsim.VersionNumber, error)