[VOL-2761][VOL-2905] Support for DT workflow
Change-Id: I9fe1fae20d3a5970a474a234aa3bde0f9110569e
diff --git a/api/bbsim/bbsim.pb.go b/api/bbsim/bbsim.pb.go
index 7d3a9ee..5d4a80d 100644
--- a/api/bbsim/bbsim.pb.go
+++ b/api/bbsim/bbsim.pb.go
@@ -1079,9 +1079,7 @@
proto.RegisterType((*Empty)(nil), "bbsim.Empty")
}
-func init() {
- proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b)
-}
+func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
// 1353 bytes of a gzipped FileDescriptorProto
@@ -1184,26 +1182,47 @@
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BBSimClient interface {
+ // Get BBSim version
Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error)
+ // Set BBSim log level
SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
+ // Get current status of OLT
GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error)
+ // Poweron OLT
PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Shutdown OLT
ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Reboot OLT
RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Get status of an ONU by serial number
GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
+ // Get status of all ONUs
GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
+ // Shutdown an ONU by serial number
ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ // Shutdown all ONUs in OLT
ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Shutdown all ONUs under a PON by pon-port-ID
ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
+ // Poweron an ONU by serial number
PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ // Poweron all ONUs in OLT
PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Poweron all ONUs under a PON by pon-port-ID
PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
+ // Restart EAPOL for ONU
RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ // Resatrt DHCP for ONU
RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ // Send ONU alarm indication
SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error)
+ // Send OLT alarm indication for Interface type NNI or PON
SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error)
+ // Get all flows or ONU specific flows
GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error)
+ // Chnage IGMP state
ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error)
+ // Get Traffic scheduler information for ONU
GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error)
}
@@ -1406,26 +1425,47 @@
// BBSimServer is the server API for BBSim service.
type BBSimServer interface {
+ // Get BBSim version
Version(context.Context, *Empty) (*VersionNumber, error)
+ // Set BBSim log level
SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
+ // Get current status of OLT
GetOlt(context.Context, *Empty) (*Olt, error)
+ // Poweron OLT
PoweronOlt(context.Context, *Empty) (*Response, error)
+ // Shutdown OLT
ShutdownOlt(context.Context, *Empty) (*Response, error)
+ // Reboot OLT
RebootOlt(context.Context, *Empty) (*Response, error)
+ // Get status of an ONU by serial number
GetONU(context.Context, *ONURequest) (*ONU, error)
+ // Get status of all ONUs
GetONUs(context.Context, *Empty) (*ONUs, error)
+ // Shutdown an ONU by serial number
ShutdownONU(context.Context, *ONURequest) (*Response, error)
+ // Shutdown all ONUs in OLT
ShutdownAllONUs(context.Context, *Empty) (*Response, error)
+ // Shutdown all ONUs under a PON by pon-port-ID
ShutdownONUsOnPON(context.Context, *PONRequest) (*Response, error)
+ // Poweron an ONU by serial number
PoweronONU(context.Context, *ONURequest) (*Response, error)
+ // Poweron all ONUs in OLT
PoweronAllONUs(context.Context, *Empty) (*Response, error)
+ // Poweron all ONUs under a PON by pon-port-ID
PoweronONUsOnPON(context.Context, *PONRequest) (*Response, error)
+ // Restart EAPOL for ONU
RestartEapol(context.Context, *ONURequest) (*Response, error)
+ // Resatrt DHCP for ONU
RestartDhcp(context.Context, *ONURequest) (*Response, error)
+ // Send ONU alarm indication
SetOnuAlarmIndication(context.Context, *ONUAlarmRequest) (*Response, error)
+ // Send OLT alarm indication for Interface type NNI or PON
SetOltAlarmIndication(context.Context, *OLTAlarmRequest) (*Response, error)
+ // Get all flows or ONU specific flows
GetFlows(context.Context, *ONURequest) (*Flows, error)
+ // Chnage IGMP state
ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error)
+ // Get Traffic scheduler information for ONU
GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error)
}
diff --git a/api/legacy/bbsim.pb.go b/api/legacy/bbsim.pb.go
index d54276c..060760b 100644
--- a/api/legacy/bbsim.pb.go
+++ b/api/legacy/bbsim.pb.go
@@ -895,60 +895,42 @@
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
-var _ grpc.ClientConnInterface
+var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
-const _ = grpc.SupportPackageIsVersion6
+const _ = grpc.SupportPackageIsVersion4
// 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.
type BBSimServiceClient interface {
// Get current status of OLT
- //
- // Deprecated: Do not use.
OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error)
// Get status of a PON/NNI port
- //
- // Deprecated: Do not use.
PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error)
// Get status of all or specific ONUs
- //
- // Deprecated: Do not use.
ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error)
// Single/bulk activate ONU(s) for specific PON port(s)
- //
- // Deprecated: Do not use.
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
- //
- // Deprecated: Do not use.
ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error)
// Generate ONU related alarms
- //
- // Deprecated: Do not use.
GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
// Generate OLT related alarms
- //
- // Deprecated: Do not use.
GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
// Perform actions on OLT/ONU devices (e.g. reboot)
- //
- // Deprecated: Do not use.
PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error)
// Get flows
- //
- // Deprecated: Do not use.
GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error)
}
type bBSimServiceClient struct {
- cc grpc.ClientConnInterface
+ cc *grpc.ClientConn
}
-func NewBBSimServiceClient(cc grpc.ClientConnInterface) BBSimServiceClient {
+func NewBBSimServiceClient(cc *grpc.ClientConn) BBSimServiceClient {
return &bBSimServiceClient{cc}
}
@@ -1045,41 +1027,23 @@
// BBSimServiceServer is the server API for BBSimService service.
type BBSimServiceServer interface {
// Get current status of OLT
- //
- // Deprecated: Do not use.
OLTStatus(context.Context, *Empty) (*OLTStatusResponse, error)
// Get status of a PON/NNI port
- //
- // Deprecated: Do not use.
PortStatus(context.Context, *PortInfo) (*Ports, error)
// Get status of all or specific ONUs
- //
- // Deprecated: Do not use.
ONUStatus(context.Context, *ONURequest) (*ONUs, error)
// Single/bulk activate ONU(s) for specific PON port(s)
- //
- // Deprecated: Do not use.
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
- //
- // Deprecated: Do not use.
ONUDeactivate(context.Context, *ONURequest) (*BBSimResponse, error)
// Generate ONU related alarms
- //
- // Deprecated: Do not use.
GenerateONUAlarm(context.Context, *ONUAlarmRequest) (*BBSimResponse, error)
// Generate OLT related alarms
- //
- // Deprecated: Do not use.
GenerateOLTAlarm(context.Context, *OLTAlarmRequest) (*BBSimResponse, error)
// Perform actions on OLT/ONU devices (e.g. reboot)
- //
- // Deprecated: Do not use.
PerformDeviceAction(context.Context, *DeviceAction) (*BBSimResponse, error)
// Get flows
- //
- // Deprecated: Do not use.
GetFlows(context.Context, *ONUInfo) (*Flows, error)
}