Documentation ¶
Overview ¶
Package legacy is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBBSimServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBBSimServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BBSimServiceClient) error
- func RegisterBBSimServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBBSimServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BBSimServiceServer) error
- func RegisterBBSimServiceServer(s *grpc.Server, srv BBSimServiceServer)
- type BBSimResponse
- func (*BBSimResponse) Descriptor() ([]byte, []int)
- func (m *BBSimResponse) GetStatusMsg() string
- func (*BBSimResponse) ProtoMessage()
- func (m *BBSimResponse) Reset()
- func (m *BBSimResponse) String() string
- func (m *BBSimResponse) XXX_DiscardUnknown()
- func (m *BBSimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BBSimResponse) XXX_Merge(src proto.Message)
- func (m *BBSimResponse) XXX_Size() int
- func (m *BBSimResponse) XXX_Unmarshal(b []byte) error
- type BBSimServiceClient
- type BBSimServiceServer
- type DeviceAction
- func (*DeviceAction) Descriptor() ([]byte, []int)
- func (m *DeviceAction) GetAction() string
- func (m *DeviceAction) GetDeviceType() string
- func (m *DeviceAction) GetSerialNumber() string
- func (*DeviceAction) ProtoMessage()
- func (m *DeviceAction) Reset()
- func (m *DeviceAction) String() string
- func (m *DeviceAction) XXX_DiscardUnknown()
- func (m *DeviceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceAction) XXX_Merge(src proto.Message)
- func (m *DeviceAction) XXX_Size() int
- func (m *DeviceAction) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Flows
- func (*Flows) Descriptor() ([]byte, []int)
- func (m *Flows) GetFlows() []*openolt.Flow
- func (*Flows) ProtoMessage()
- func (m *Flows) Reset()
- func (m *Flows) String() string
- func (m *Flows) XXX_DiscardUnknown()
- func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Flows) XXX_Merge(src proto.Message)
- func (m *Flows) XXX_Size() int
- func (m *Flows) XXX_Unmarshal(b []byte) error
- type OLTAlarmRequest
- func (*OLTAlarmRequest) Descriptor() ([]byte, []int)
- func (m *OLTAlarmRequest) GetPortId() uint32
- func (m *OLTAlarmRequest) GetPortType() string
- func (m *OLTAlarmRequest) GetStatus() string
- func (*OLTAlarmRequest) ProtoMessage()
- func (m *OLTAlarmRequest) Reset()
- func (m *OLTAlarmRequest) String() string
- func (m *OLTAlarmRequest) XXX_DiscardUnknown()
- func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OLTAlarmRequest) XXX_Merge(src proto.Message)
- func (m *OLTAlarmRequest) XXX_Size() int
- func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error
- type OLTInfo
- func (*OLTInfo) Descriptor() ([]byte, []int)
- func (m *OLTInfo) GetOltId() int64
- func (m *OLTInfo) GetOltIp() string
- func (m *OLTInfo) GetOltSerial() string
- func (m *OLTInfo) GetOltState() string
- func (m *OLTInfo) GetOltVendor() string
- func (*OLTInfo) ProtoMessage()
- func (m *OLTInfo) Reset()
- func (m *OLTInfo) String() string
- func (m *OLTInfo) XXX_DiscardUnknown()
- func (m *OLTInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OLTInfo) XXX_Merge(src proto.Message)
- func (m *OLTInfo) XXX_Size() int
- func (m *OLTInfo) XXX_Unmarshal(b []byte) error
- type OLTStatusResponse
- func (*OLTStatusResponse) Descriptor() ([]byte, []int)
- func (m *OLTStatusResponse) GetOlt() *OLTInfo
- func (m *OLTStatusResponse) GetPorts() []*PortInfo
- func (*OLTStatusResponse) ProtoMessage()
- func (m *OLTStatusResponse) Reset()
- func (m *OLTStatusResponse) String() string
- func (m *OLTStatusResponse) XXX_DiscardUnknown()
- func (m *OLTStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OLTStatusResponse) XXX_Merge(src proto.Message)
- func (m *OLTStatusResponse) XXX_Size() int
- func (m *OLTStatusResponse) XXX_Unmarshal(b []byte) error
- type ONUAlarmRequest
- func (*ONUAlarmRequest) Descriptor() ([]byte, []int)
- func (m *ONUAlarmRequest) GetAlarmType() string
- func (m *ONUAlarmRequest) GetOnuSerial() string
- func (m *ONUAlarmRequest) GetStatus() string
- func (*ONUAlarmRequest) ProtoMessage()
- func (m *ONUAlarmRequest) Reset()
- func (m *ONUAlarmRequest) String() string
- func (m *ONUAlarmRequest) XXX_DiscardUnknown()
- func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ONUAlarmRequest) XXX_Merge(src proto.Message)
- func (m *ONUAlarmRequest) XXX_Size() int
- func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error
- type ONUInfo
- func (*ONUInfo) Descriptor() ([]byte, []int)
- func (m *ONUInfo) GetGemports() []uint32
- func (m *ONUInfo) GetOnuId() uint32
- func (m *ONUInfo) GetOnuSerial() string
- func (m *ONUInfo) GetOnuState() string
- func (m *ONUInfo) GetOperState() string
- func (m *ONUInfo) GetPonPortId() uint32
- func (m *ONUInfo) GetTconts() *Tconts
- func (*ONUInfo) ProtoMessage()
- func (m *ONUInfo) Reset()
- func (m *ONUInfo) String() string
- func (m *ONUInfo) XXX_DiscardUnknown()
- func (m *ONUInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ONUInfo) XXX_Merge(src proto.Message)
- func (m *ONUInfo) XXX_Size() int
- func (m *ONUInfo) XXX_Unmarshal(b []byte) error
- type ONURequest
- func (*ONURequest) Descriptor() ([]byte, []int)
- func (m *ONURequest) GetOnu() *ONUInfo
- func (m *ONURequest) GetOnusBatch() *ONUs
- func (*ONURequest) ProtoMessage()
- func (m *ONURequest) Reset()
- func (m *ONURequest) String() string
- func (m *ONURequest) XXX_DiscardUnknown()
- func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ONURequest) XXX_Merge(src proto.Message)
- func (m *ONURequest) XXX_Size() int
- func (m *ONURequest) XXX_Unmarshal(b []byte) error
- type ONUs
- func (*ONUs) Descriptor() ([]byte, []int)
- func (m *ONUs) GetOnus() []*ONUInfo
- func (*ONUs) ProtoMessage()
- func (m *ONUs) Reset()
- func (m *ONUs) String() string
- func (m *ONUs) XXX_DiscardUnknown()
- func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ONUs) XXX_Merge(src proto.Message)
- func (m *ONUs) XXX_Size() int
- func (m *ONUs) XXX_Unmarshal(b []byte) error
- type PortInfo
- func (*PortInfo) Descriptor() ([]byte, []int)
- func (m *PortInfo) GetAlarmState() string
- func (m *PortInfo) GetPonPortActiveOnus() uint32
- func (m *PortInfo) GetPonPortMaxOnus() uint32
- func (m *PortInfo) GetPortId() uint32
- func (m *PortInfo) GetPortState() string
- func (m *PortInfo) GetPortType() string
- func (*PortInfo) ProtoMessage()
- func (m *PortInfo) Reset()
- func (m *PortInfo) String() string
- func (m *PortInfo) XXX_DiscardUnknown()
- func (m *PortInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PortInfo) XXX_Merge(src proto.Message)
- func (m *PortInfo) XXX_Size() int
- func (m *PortInfo) XXX_Unmarshal(b []byte) error
- type Ports
- func (*Ports) Descriptor() ([]byte, []int)
- func (m *Ports) GetPorts() []*PortInfo
- func (*Ports) ProtoMessage()
- func (m *Ports) Reset()
- func (m *Ports) String() string
- func (m *Ports) XXX_DiscardUnknown()
- func (m *Ports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ports) XXX_Merge(src proto.Message)
- func (m *Ports) XXX_Size() int
- func (m *Ports) XXX_Unmarshal(b []byte) error
- type Tconts
- func (*Tconts) Descriptor() ([]byte, []int)
- func (m *Tconts) GetPortNo() uint32
- func (m *Tconts) GetTconts() []*tech_profile.TrafficScheduler
- func (m *Tconts) GetUniId() uint32
- func (*Tconts) ProtoMessage()
- func (m *Tconts) Reset()
- func (m *Tconts) String() string
- func (m *Tconts) XXX_DiscardUnknown()
- func (m *Tconts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tconts) XXX_Merge(src proto.Message)
- func (m *Tconts) XXX_Size() int
- func (m *Tconts) XXX_Unmarshal(b []byte) error
- type UnimplementedBBSimServiceServer
- func (*UnimplementedBBSimServiceServer) GenerateOLTAlarm(ctx context.Context, req *OLTAlarmRequest) (*BBSimResponse, error)
- func (*UnimplementedBBSimServiceServer) GenerateONUAlarm(ctx context.Context, req *ONUAlarmRequest) (*BBSimResponse, error)
- func (*UnimplementedBBSimServiceServer) GetFlows(ctx context.Context, req *ONUInfo) (*Flows, error)
- func (*UnimplementedBBSimServiceServer) OLTStatus(ctx context.Context, req *Empty) (*OLTStatusResponse, error)
- func (*UnimplementedBBSimServiceServer) ONUActivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error)
- func (*UnimplementedBBSimServiceServer) ONUDeactivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error)
- func (*UnimplementedBBSimServiceServer) ONUStatus(ctx context.Context, req *ONURequest) (*ONUs, error)
- func (*UnimplementedBBSimServiceServer) PerformDeviceAction(ctx context.Context, req *DeviceAction) (*BBSimResponse, error)
- func (*UnimplementedBBSimServiceServer) PortStatus(ctx context.Context, req *PortInfo) (*Ports, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBBSimServiceHandler ¶
func RegisterBBSimServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBBSimServiceHandler registers the http handlers for service BBSimService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBBSimServiceHandlerClient ¶
func RegisterBBSimServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BBSimServiceClient) error
RegisterBBSimServiceHandlerClient registers the http handlers for service BBSimService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BBSimServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BBSimServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BBSimServiceClient" to call the correct interceptors.
func RegisterBBSimServiceHandlerFromEndpoint ¶
func RegisterBBSimServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBBSimServiceHandlerFromEndpoint is same as RegisterBBSimServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBBSimServiceHandlerServer ¶
func RegisterBBSimServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BBSimServiceServer) error
RegisterBBSimServiceHandlerServer registers the http handlers for service BBSimService to "mux". UnaryRPC :call BBSimServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterBBSimServiceServer ¶
func RegisterBBSimServiceServer(s *grpc.Server, srv BBSimServiceServer)
Types ¶
type BBSimResponse ¶
type BBSimResponse struct { StatusMsg string `protobuf:"bytes,1,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BBSim response message
func (*BBSimResponse) Descriptor ¶
func (*BBSimResponse) Descriptor() ([]byte, []int)
func (*BBSimResponse) GetStatusMsg ¶
func (m *BBSimResponse) GetStatusMsg() string
func (*BBSimResponse) ProtoMessage ¶
func (*BBSimResponse) ProtoMessage()
func (*BBSimResponse) Reset ¶
func (m *BBSimResponse) Reset()
func (*BBSimResponse) String ¶
func (m *BBSimResponse) String() string
func (*BBSimResponse) XXX_DiscardUnknown ¶
func (m *BBSimResponse) XXX_DiscardUnknown()
func (*BBSimResponse) XXX_Marshal ¶
func (m *BBSimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BBSimResponse) XXX_Merge ¶
func (m *BBSimResponse) XXX_Merge(src proto.Message)
func (*BBSimResponse) XXX_Size ¶
func (m *BBSimResponse) XXX_Size() int
func (*BBSimResponse) XXX_Unmarshal ¶
func (m *BBSimResponse) XXX_Unmarshal(b []byte) error
type BBSimServiceClient ¶
type BBSimServiceClient interface { // Get current status of OLT OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error) // Get status of a PON/NNI port PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error) // Get status of all or specific ONUs ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error) // Single/bulk activate ONU(s) for specific PON port(s) ONUActivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) // Deactivate ONU(s) for specific PON port(s) specified by // a given onu_serial, onu_id, or pon_port_id ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) // Generate ONU related alarms GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) // Generate OLT related alarms GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) // Perform actions on OLT/ONU devices (e.g. reboot) PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error) // Get flows GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error) }
BBSimServiceClient is the client API for BBSimService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBBSimServiceClient ¶
func NewBBSimServiceClient(cc *grpc.ClientConn) BBSimServiceClient
type BBSimServiceServer ¶
type BBSimServiceServer interface { // Get current status of OLT OLTStatus(context.Context, *Empty) (*OLTStatusResponse, error) // Get status of a PON/NNI port PortStatus(context.Context, *PortInfo) (*Ports, error) // Get status of all or specific ONUs ONUStatus(context.Context, *ONURequest) (*ONUs, error) // Single/bulk activate ONU(s) for specific PON port(s) ONUActivate(context.Context, *ONURequest) (*BBSimResponse, error) // Deactivate ONU(s) for specific PON port(s) specified by // a given onu_serial, onu_id, or pon_port_id ONUDeactivate(context.Context, *ONURequest) (*BBSimResponse, error) // Generate ONU related alarms GenerateONUAlarm(context.Context, *ONUAlarmRequest) (*BBSimResponse, error) // Generate OLT related alarms GenerateOLTAlarm(context.Context, *OLTAlarmRequest) (*BBSimResponse, error) // Perform actions on OLT/ONU devices (e.g. reboot) PerformDeviceAction(context.Context, *DeviceAction) (*BBSimResponse, error) // Get flows GetFlows(context.Context, *ONUInfo) (*Flows, error) }
BBSimServiceServer is the server API for BBSimService service.
type DeviceAction ¶
type DeviceAction struct { DeviceType string `protobuf:"bytes,1,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Device action
func (*DeviceAction) Descriptor ¶
func (*DeviceAction) Descriptor() ([]byte, []int)
func (*DeviceAction) GetAction ¶
func (m *DeviceAction) GetAction() string
func (*DeviceAction) GetDeviceType ¶
func (m *DeviceAction) GetDeviceType() string
func (*DeviceAction) GetSerialNumber ¶
func (m *DeviceAction) GetSerialNumber() string
func (*DeviceAction) ProtoMessage ¶
func (*DeviceAction) ProtoMessage()
func (*DeviceAction) Reset ¶
func (m *DeviceAction) Reset()
func (*DeviceAction) String ¶
func (m *DeviceAction) String() string
func (*DeviceAction) XXX_DiscardUnknown ¶
func (m *DeviceAction) XXX_DiscardUnknown()
func (*DeviceAction) XXX_Marshal ¶
func (m *DeviceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceAction) XXX_Merge ¶
func (m *DeviceAction) XXX_Merge(src proto.Message)
func (*DeviceAction) XXX_Size ¶
func (m *DeviceAction) XXX_Size() int
func (*DeviceAction) XXX_Unmarshal ¶
func (m *DeviceAction) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Flows ¶
type Flows struct { Flows []*openolt.Flow `protobuf:"bytes,1,rep,name=flows,proto3" json:"flows,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Flows) Descriptor ¶
func (*Flows) ProtoMessage ¶
func (*Flows) ProtoMessage()
func (*Flows) XXX_DiscardUnknown ¶
func (m *Flows) XXX_DiscardUnknown()
func (*Flows) XXX_Marshal ¶
func (*Flows) XXX_Unmarshal ¶
type OLTAlarmRequest ¶
type OLTAlarmRequest struct { PortId uint32 `protobuf:"varint,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` PortType string `protobuf:"bytes,2,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
OLT alarm request
func (*OLTAlarmRequest) Descriptor ¶
func (*OLTAlarmRequest) Descriptor() ([]byte, []int)
func (*OLTAlarmRequest) GetPortId ¶
func (m *OLTAlarmRequest) GetPortId() uint32
func (*OLTAlarmRequest) GetPortType ¶
func (m *OLTAlarmRequest) GetPortType() string
func (*OLTAlarmRequest) GetStatus ¶
func (m *OLTAlarmRequest) GetStatus() string
func (*OLTAlarmRequest) ProtoMessage ¶
func (*OLTAlarmRequest) ProtoMessage()
func (*OLTAlarmRequest) Reset ¶
func (m *OLTAlarmRequest) Reset()
func (*OLTAlarmRequest) String ¶
func (m *OLTAlarmRequest) String() string
func (*OLTAlarmRequest) XXX_DiscardUnknown ¶
func (m *OLTAlarmRequest) XXX_DiscardUnknown()
func (*OLTAlarmRequest) XXX_Marshal ¶
func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OLTAlarmRequest) XXX_Merge ¶
func (m *OLTAlarmRequest) XXX_Merge(src proto.Message)
func (*OLTAlarmRequest) XXX_Size ¶
func (m *OLTAlarmRequest) XXX_Size() int
func (*OLTAlarmRequest) XXX_Unmarshal ¶
func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error
type OLTInfo ¶
type OLTInfo struct { OltId int64 `protobuf:"varint,1,opt,name=olt_id,json=oltId,proto3" json:"olt_id,omitempty"` OltSerial string `protobuf:"bytes,2,opt,name=olt_serial,json=oltSerial,proto3" json:"olt_serial,omitempty"` OltIp string `protobuf:"bytes,3,opt,name=olt_ip,json=oltIp,proto3" json:"olt_ip,omitempty"` OltState string `protobuf:"bytes,4,opt,name=olt_state,json=oltState,proto3" json:"olt_state,omitempty"` OltVendor string `protobuf:"bytes,5,opt,name=olt_vendor,json=oltVendor,proto3" json:"olt_vendor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
OLT information This supports the older format of the REST APIs (still used from some clients) Please refer to the protos in api/bbsim/bbsim.proto for the latest available version
func (*OLTInfo) Descriptor ¶
func (*OLTInfo) GetOltSerial ¶
func (*OLTInfo) GetOltState ¶
func (*OLTInfo) GetOltVendor ¶
func (*OLTInfo) ProtoMessage ¶
func (*OLTInfo) ProtoMessage()
func (*OLTInfo) XXX_DiscardUnknown ¶
func (m *OLTInfo) XXX_DiscardUnknown()
func (*OLTInfo) XXX_Marshal ¶
func (*OLTInfo) XXX_Unmarshal ¶
type OLTStatusResponse ¶
type OLTStatusResponse struct { Olt *OLTInfo `protobuf:"bytes,1,opt,name=olt,proto3" json:"olt,omitempty"` Ports []*PortInfo `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BBSim status
func (*OLTStatusResponse) Descriptor ¶
func (*OLTStatusResponse) Descriptor() ([]byte, []int)
func (*OLTStatusResponse) GetOlt ¶
func (m *OLTStatusResponse) GetOlt() *OLTInfo
func (*OLTStatusResponse) GetPorts ¶
func (m *OLTStatusResponse) GetPorts() []*PortInfo
func (*OLTStatusResponse) ProtoMessage ¶
func (*OLTStatusResponse) ProtoMessage()
func (*OLTStatusResponse) Reset ¶
func (m *OLTStatusResponse) Reset()
func (*OLTStatusResponse) String ¶
func (m *OLTStatusResponse) String() string
func (*OLTStatusResponse) XXX_DiscardUnknown ¶
func (m *OLTStatusResponse) XXX_DiscardUnknown()
func (*OLTStatusResponse) XXX_Marshal ¶
func (m *OLTStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OLTStatusResponse) XXX_Merge ¶
func (m *OLTStatusResponse) XXX_Merge(src proto.Message)
func (*OLTStatusResponse) XXX_Size ¶
func (m *OLTStatusResponse) XXX_Size() int
func (*OLTStatusResponse) XXX_Unmarshal ¶
func (m *OLTStatusResponse) XXX_Unmarshal(b []byte) error
type ONUAlarmRequest ¶
type ONUAlarmRequest struct { // ONU serial number OnuSerial string `protobuf:"bytes,1,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"` // Alarm types are: // "signaldegrade" // "lossofomcichannel" // "lossofploam" AlarmType string `protobuf:"bytes,2,opt,name=alarm_type,json=alarmType,proto3" json:"alarm_type,omitempty"` // "on"/"off" indicates raised or cleared alarm Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ONU alarm request
func (*ONUAlarmRequest) Descriptor ¶
func (*ONUAlarmRequest) Descriptor() ([]byte, []int)
func (*ONUAlarmRequest) GetAlarmType ¶
func (m *ONUAlarmRequest) GetAlarmType() string
func (*ONUAlarmRequest) GetOnuSerial ¶
func (m *ONUAlarmRequest) GetOnuSerial() string
func (*ONUAlarmRequest) GetStatus ¶
func (m *ONUAlarmRequest) GetStatus() string
func (*ONUAlarmRequest) ProtoMessage ¶
func (*ONUAlarmRequest) ProtoMessage()
func (*ONUAlarmRequest) Reset ¶
func (m *ONUAlarmRequest) Reset()
func (*ONUAlarmRequest) String ¶
func (m *ONUAlarmRequest) String() string
func (*ONUAlarmRequest) XXX_DiscardUnknown ¶
func (m *ONUAlarmRequest) XXX_DiscardUnknown()
func (*ONUAlarmRequest) XXX_Marshal ¶
func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ONUAlarmRequest) XXX_Merge ¶
func (m *ONUAlarmRequest) XXX_Merge(src proto.Message)
func (*ONUAlarmRequest) XXX_Size ¶
func (m *ONUAlarmRequest) XXX_Size() int
func (*ONUAlarmRequest) XXX_Unmarshal ¶
func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error
type ONUInfo ¶
type ONUInfo struct { OnuId uint32 `protobuf:"varint,1,opt,name=onu_id,json=onuId,proto3" json:"onu_id,omitempty"` PonPortId uint32 `protobuf:"varint,2,opt,name=pon_port_id,json=ponPortId,proto3" json:"pon_port_id,omitempty"` // ONU serial number OnuSerial string `protobuf:"bytes,3,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"` // ONU oper state OperState string `protobuf:"bytes,4,opt,name=oper_state,json=operState,proto3" json:"oper_state,omitempty"` // ONU internal state OnuState string `protobuf:"bytes,5,opt,name=onu_state,json=onuState,proto3" json:"onu_state,omitempty"` Gemports []uint32 `protobuf:"varint,6,rep,packed,name=gemports,proto3" json:"gemports,omitempty"` Tconts *Tconts `protobuf:"bytes,7,opt,name=tconts,proto3" json:"tconts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ONU information
func (*ONUInfo) Descriptor ¶
func (*ONUInfo) GetGemports ¶
func (*ONUInfo) GetOnuSerial ¶
func (*ONUInfo) GetOnuState ¶
func (*ONUInfo) GetOperState ¶
func (*ONUInfo) GetPonPortId ¶
func (*ONUInfo) ProtoMessage ¶
func (*ONUInfo) ProtoMessage()
func (*ONUInfo) XXX_DiscardUnknown ¶
func (m *ONUInfo) XXX_DiscardUnknown()
func (*ONUInfo) XXX_Marshal ¶
func (*ONUInfo) XXX_Unmarshal ¶
type ONURequest ¶
type ONURequest struct { Onu *ONUInfo `protobuf:"bytes,1,opt,name=onu,proto3" json:"onu,omitempty"` OnusBatch *ONUs `protobuf:"bytes,2,opt,name=onus_batch,json=onusBatch,proto3" json:"onus_batch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ONURequest) Descriptor ¶
func (*ONURequest) Descriptor() ([]byte, []int)
func (*ONURequest) GetOnu ¶
func (m *ONURequest) GetOnu() *ONUInfo
func (*ONURequest) GetOnusBatch ¶
func (m *ONURequest) GetOnusBatch() *ONUs
func (*ONURequest) ProtoMessage ¶
func (*ONURequest) ProtoMessage()
func (*ONURequest) Reset ¶
func (m *ONURequest) Reset()
func (*ONURequest) String ¶
func (m *ONURequest) String() string
func (*ONURequest) XXX_DiscardUnknown ¶
func (m *ONURequest) XXX_DiscardUnknown()
func (*ONURequest) XXX_Marshal ¶
func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ONURequest) XXX_Merge ¶
func (m *ONURequest) XXX_Merge(src proto.Message)
func (*ONURequest) XXX_Size ¶
func (m *ONURequest) XXX_Size() int
func (*ONURequest) XXX_Unmarshal ¶
func (m *ONURequest) XXX_Unmarshal(b []byte) error
type ONUs ¶
type ONUs struct { Onus []*ONUInfo `protobuf:"bytes,1,rep,name=onus,proto3" json:"onus,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Bulk ONU operations
func (*ONUs) Descriptor ¶
func (*ONUs) ProtoMessage ¶
func (*ONUs) ProtoMessage()
func (*ONUs) XXX_DiscardUnknown ¶
func (m *ONUs) XXX_DiscardUnknown()
func (*ONUs) XXX_Unmarshal ¶
type PortInfo ¶
type PortInfo struct { PortType string `protobuf:"bytes,1,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"` PortId uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` PonPortMaxOnus uint32 `protobuf:"varint,3,opt,name=pon_port_max_onus,json=ponPortMaxOnus,proto3" json:"pon_port_max_onus,omitempty"` PonPortActiveOnus uint32 `protobuf:"varint,4,opt,name=pon_port_active_onus,json=ponPortActiveOnus,proto3" json:"pon_port_active_onus,omitempty"` PortState string `protobuf:"bytes,5,opt,name=port_state,json=portState,proto3" json:"port_state,omitempty"` AlarmState string `protobuf:"bytes,6,opt,name=alarm_state,json=alarmState,proto3" json:"alarm_state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Port information
func (*PortInfo) Descriptor ¶
func (*PortInfo) GetAlarmState ¶
func (*PortInfo) GetPonPortActiveOnus ¶
func (*PortInfo) GetPonPortMaxOnus ¶
func (*PortInfo) GetPortState ¶
func (*PortInfo) GetPortType ¶
func (*PortInfo) ProtoMessage ¶
func (*PortInfo) ProtoMessage()
func (*PortInfo) XXX_DiscardUnknown ¶
func (m *PortInfo) XXX_DiscardUnknown()
func (*PortInfo) XXX_Marshal ¶
func (*PortInfo) XXX_Unmarshal ¶
type Ports ¶
type Ports struct { Ports []*PortInfo `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Bulk port information
func (*Ports) Descriptor ¶
func (*Ports) ProtoMessage ¶
func (*Ports) ProtoMessage()
func (*Ports) XXX_DiscardUnknown ¶
func (m *Ports) XXX_DiscardUnknown()
func (*Ports) XXX_Marshal ¶
func (*Ports) XXX_Unmarshal ¶
type Tconts ¶
type Tconts struct { UniId uint32 `protobuf:"fixed32,4,opt,name=uni_id,json=uniId,proto3" json:"uni_id,omitempty"` PortNo uint32 `protobuf:"fixed32,5,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` Tconts []*tech_profile.TrafficScheduler `protobuf:"bytes,3,rep,name=tconts,proto3" json:"tconts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tconts) Descriptor ¶
func (*Tconts) GetTconts ¶
func (m *Tconts) GetTconts() []*tech_profile.TrafficScheduler
func (*Tconts) ProtoMessage ¶
func (*Tconts) ProtoMessage()
func (*Tconts) XXX_DiscardUnknown ¶
func (m *Tconts) XXX_DiscardUnknown()
func (*Tconts) XXX_Marshal ¶
func (*Tconts) XXX_Unmarshal ¶
type UnimplementedBBSimServiceServer ¶
type UnimplementedBBSimServiceServer struct { }
UnimplementedBBSimServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBBSimServiceServer) GenerateOLTAlarm ¶
func (*UnimplementedBBSimServiceServer) GenerateOLTAlarm(ctx context.Context, req *OLTAlarmRequest) (*BBSimResponse, error)
func (*UnimplementedBBSimServiceServer) GenerateONUAlarm ¶
func (*UnimplementedBBSimServiceServer) GenerateONUAlarm(ctx context.Context, req *ONUAlarmRequest) (*BBSimResponse, error)
func (*UnimplementedBBSimServiceServer) OLTStatus ¶
func (*UnimplementedBBSimServiceServer) OLTStatus(ctx context.Context, req *Empty) (*OLTStatusResponse, error)
func (*UnimplementedBBSimServiceServer) ONUActivate ¶
func (*UnimplementedBBSimServiceServer) ONUActivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error)
func (*UnimplementedBBSimServiceServer) ONUDeactivate ¶
func (*UnimplementedBBSimServiceServer) ONUDeactivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error)
func (*UnimplementedBBSimServiceServer) ONUStatus ¶
func (*UnimplementedBBSimServiceServer) ONUStatus(ctx context.Context, req *ONURequest) (*ONUs, error)
func (*UnimplementedBBSimServiceServer) PerformDeviceAction ¶
func (*UnimplementedBBSimServiceServer) PerformDeviceAction(ctx context.Context, req *DeviceAction) (*BBSimResponse, error)