Create uni command in BBSimctl
Clean up UNI command and add filtering to UNI services
Change-Id: I1a54d786ca71a602c0ca0113f030c6caa1bc9cc7
diff --git a/api/bbsim/bbsim.pb.go b/api/bbsim/bbsim.pb.go
index 97f9455..12cf16e 100644
--- a/api/bbsim/bbsim.pb.go
+++ b/api/bbsim/bbsim.pb.go
@@ -159,7 +159,7 @@
}
func (AlarmType_Types) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{16, 0}
+ return fileDescriptor_ef7750073d18011b, []int{17, 0}
}
type PONPort struct {
@@ -1191,6 +1191,53 @@
return 0
}
+type UNIRequest struct {
+ OnuSerialNumber string `protobuf:"bytes,1,opt,name=OnuSerialNumber,proto3" json:"OnuSerialNumber,omitempty"`
+ UniID string `protobuf:"bytes,2,opt,name=UniID,proto3" json:"UniID,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *UNIRequest) Reset() { *m = UNIRequest{} }
+func (m *UNIRequest) String() string { return proto.CompactTextString(m) }
+func (*UNIRequest) ProtoMessage() {}
+func (*UNIRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{16}
+}
+
+func (m *UNIRequest) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_UNIRequest.Unmarshal(m, b)
+}
+func (m *UNIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_UNIRequest.Marshal(b, m, deterministic)
+}
+func (m *UNIRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_UNIRequest.Merge(m, src)
+}
+func (m *UNIRequest) XXX_Size() int {
+ return xxx_messageInfo_UNIRequest.Size(m)
+}
+func (m *UNIRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_UNIRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_UNIRequest proto.InternalMessageInfo
+
+func (m *UNIRequest) GetOnuSerialNumber() string {
+ if m != nil {
+ return m.OnuSerialNumber
+ }
+ return ""
+}
+
+func (m *UNIRequest) GetUniID() string {
+ if m != nil {
+ return m.UniID
+ }
+ return ""
+}
+
type AlarmType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@@ -1201,7 +1248,7 @@
func (m *AlarmType) String() string { return proto.CompactTextString(m) }
func (*AlarmType) ProtoMessage() {}
func (*AlarmType) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{16}
+ return fileDescriptor_ef7750073d18011b, []int{17}
}
func (m *AlarmType) XXX_Unmarshal(b []byte) error {
@@ -1234,7 +1281,7 @@
func (m *AlarmParameter) String() string { return proto.CompactTextString(m) }
func (*AlarmParameter) ProtoMessage() {}
func (*AlarmParameter) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{17}
+ return fileDescriptor_ef7750073d18011b, []int{18}
}
func (m *AlarmParameter) XXX_Unmarshal(b []byte) error {
@@ -1286,7 +1333,7 @@
func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) }
func (*ONUAlarmRequest) ProtoMessage() {}
func (*ONUAlarmRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{18}
+ return fileDescriptor_ef7750073d18011b, []int{19}
}
func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error {
@@ -1349,7 +1396,7 @@
func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) }
func (*OLTAlarmRequest) ProtoMessage() {}
func (*OLTAlarmRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{19}
+ return fileDescriptor_ef7750073d18011b, []int{20}
}
func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error {
@@ -1405,7 +1452,7 @@
func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
func (*VersionNumber) ProtoMessage() {}
func (*VersionNumber) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{20}
+ return fileDescriptor_ef7750073d18011b, []int{21}
}
func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
@@ -1466,7 +1513,7 @@
func (m *LogLevel) String() string { return proto.CompactTextString(m) }
func (*LogLevel) ProtoMessage() {}
func (*LogLevel) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{21}
+ return fileDescriptor_ef7750073d18011b, []int{22}
}
func (m *LogLevel) XXX_Unmarshal(b []byte) error {
@@ -1513,7 +1560,7 @@
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{22}
+ return fileDescriptor_ef7750073d18011b, []int{23}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
@@ -1561,7 +1608,7 @@
func (m *IgmpRequest) String() string { return proto.CompactTextString(m) }
func (*IgmpRequest) ProtoMessage() {}
func (*IgmpRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{23}
+ return fileDescriptor_ef7750073d18011b, []int{24}
}
func (m *IgmpRequest) XXX_Unmarshal(b []byte) error {
@@ -1615,7 +1662,7 @@
func (m *Flows) String() string { return proto.CompactTextString(m) }
func (*Flows) ProtoMessage() {}
func (*Flows) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{24}
+ return fileDescriptor_ef7750073d18011b, []int{25}
}
func (m *Flows) XXX_Unmarshal(b []byte) error {
@@ -1661,7 +1708,7 @@
func (m *Timeout) String() string { return proto.CompactTextString(m) }
func (*Timeout) ProtoMessage() {}
func (*Timeout) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{25}
+ return fileDescriptor_ef7750073d18011b, []int{26}
}
func (m *Timeout) XXX_Unmarshal(b []byte) error {
@@ -1699,7 +1746,7 @@
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{26}
+ return fileDescriptor_ef7750073d18011b, []int{27}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
@@ -1740,6 +1787,7 @@
proto.RegisterType((*UNIs)(nil), "bbsim.UNIs")
proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
proto.RegisterType((*PONRequest)(nil), "bbsim.PONRequest")
+ proto.RegisterType((*UNIRequest)(nil), "bbsim.UNIRequest")
proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType")
proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter")
proto.RegisterType((*ONUAlarmRequest)(nil), "bbsim.ONUAlarmRequest")
@@ -1756,136 +1804,138 @@
func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
- // 2056 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4d, 0x72, 0xdb, 0xc8,
- 0x15, 0x16, 0xff, 0xc9, 0x47, 0x91, 0x82, 0xda, 0x96, 0x06, 0x25, 0x6b, 0xc6, 0x2c, 0x8c, 0x27,
- 0x25, 0xbb, 0x32, 0xf2, 0x58, 0x4e, 0x26, 0xf6, 0x12, 0x22, 0x29, 0x1a, 0x16, 0x05, 0xb0, 0x1a,
- 0xa4, 0x5c, 0x4e, 0x16, 0x2c, 0x88, 0x68, 0x49, 0xa8, 0x80, 0x00, 0x0d, 0x80, 0x52, 0x74, 0x80,
- 0x54, 0x8e, 0x90, 0x65, 0xaa, 0x72, 0x80, 0x6c, 0xb3, 0xc8, 0x25, 0x72, 0x82, 0x64, 0x95, 0x7b,
- 0xa4, 0xba, 0xd1, 0xf8, 0x23, 0x21, 0x5b, 0x5e, 0xcd, 0x86, 0x85, 0xf7, 0xbd, 0x9f, 0x7e, 0x7f,
- 0xdd, 0xfd, 0x9a, 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
+ 0x9d, 0x67, 0xe3, 0x47, 0xa8, 0x0f, 0x49, 0x10, 0xee, 0xdc, 0x39, 0x91, 0x47, 0xc5, 0x66, 0x02,
+ 0xac, 0xb6, 0x9d, 0xde, 0xb5, 0xe1, 0x5c, 0x11, 0x7a, 0x08, 0x85, 0x2f, 0x0f, 0xc4, 0x45, 0x52,
+ 0xc7, 0x52, 0x9e, 0xa3, 0x53, 0xf8, 0x26, 0x1c, 0xe8, 0xcd, 0xd7, 0x48, 0x8e, 0xdf, 0x27, 0x09,
+ 0xb4, 0x21, 0x1f, 0x2f, 0x3d, 0xb6, 0x34, 0xf2, 0x97, 0x5e, 0xb8, 0x2a, 0x8e, 0x7f, 0xf8, 0xed,
+ 0xf7, 0x57, 0x56, 0x70, 0xbd, 0xba, 0x38, 0x9a, 0xbb, 0x0b, 0xf6, 0x07, 0xf0, 0xdc, 0xf5, 0x4c,
+ 0xfe, 0x8f, 0x71, 0xfc, 0xdf, 0xf1, 0x45, 0x95, 0xfd, 0xe1, 0xfb, 0xe6, 0xbf, 0x01, 0x00, 0x00,
+ 0xff, 0xff, 0x64, 0x15, 0xb3, 0xe8, 0x4f, 0x16, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1923,8 +1973,8 @@
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)
- // Get all the Services
- GetServices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Services, error)
+ // Get all the Services by Uni ID
+ GetServices(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Services, error)
// Get all the UNIs of an ONU by serial number
GetOnuUnis(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*UNIs, error)
// Shutdown an ONU by serial number
@@ -1953,6 +2003,8 @@
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)
+ //Return all the UNIs for all the ONUs
+ GetUnis(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UNIs, error)
}
type bBSimClient struct {
@@ -2071,7 +2123,7 @@
return out, nil
}
-func (c *bBSimClient) GetServices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Services, error) {
+func (c *bBSimClient) GetServices(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Services, error) {
out := new(Services)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetServices", in, out, opts...)
if err != nil {
@@ -2206,6 +2258,15 @@
return out, nil
}
+func (c *bBSimClient) GetUnis(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UNIs, error) {
+ out := new(UNIs)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetUnis", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// BBSimServer is the server API for BBSim service.
type BBSimServer interface {
// Get BBSim version
@@ -2231,8 +2292,8 @@
GetONU(context.Context, *ONURequest) (*ONU, error)
// Get status of all ONUs
GetONUs(context.Context, *Empty) (*ONUs, error)
- // Get all the Services
- GetServices(context.Context, *Empty) (*Services, error)
+ // Get all the Services by Uni ID
+ GetServices(context.Context, *UNIRequest) (*Services, error)
// Get all the UNIs of an ONU by serial number
GetOnuUnis(context.Context, *ONURequest) (*UNIs, error)
// Shutdown an ONU by serial number
@@ -2261,6 +2322,8 @@
ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error)
// Get Traffic scheduler information for ONU
GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error)
+ //Return all the UNIs for all the ONUs
+ GetUnis(context.Context, *Empty) (*UNIs, error)
}
// UnimplementedBBSimServer can be embedded to have forward compatible implementations.
@@ -2303,7 +2366,7 @@
func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented")
}
-func (*UnimplementedBBSimServer) GetServices(ctx context.Context, req *Empty) (*Services, error) {
+func (*UnimplementedBBSimServer) GetServices(ctx context.Context, req *UNIRequest) (*Services, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetServices not implemented")
}
func (*UnimplementedBBSimServer) GetOnuUnis(ctx context.Context, req *ONURequest) (*UNIs, error) {
@@ -2348,6 +2411,9 @@
func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented")
}
+func (*UnimplementedBBSimServer) GetUnis(ctx context.Context, req *Empty) (*UNIs, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetUnis not implemented")
+}
func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
s.RegisterService(&_BBSim_serviceDesc, srv)
@@ -2570,7 +2636,7 @@
}
func _BBSim_GetServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Empty)
+ in := new(UNIRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -2582,7 +2648,7 @@
FullMethod: "/bbsim.BBSim/GetServices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BBSimServer).GetServices(ctx, req.(*Empty))
+ return srv.(BBSimServer).GetServices(ctx, req.(*UNIRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -2839,6 +2905,24 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_GetUnis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(Empty)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).GetUnis(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/GetUnis",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).GetUnis(ctx, req.(*Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
var _BBSim_serviceDesc = grpc.ServiceDesc{
ServiceName: "bbsim.BBSim",
HandlerType: (*BBSimServer)(nil),
@@ -2951,6 +3035,10 @@
MethodName: "GetOnuTrafficSchedulers",
Handler: _BBSim_GetOnuTrafficSchedulers_Handler,
},
+ {
+ MethodName: "GetUnis",
+ Handler: _BBSim_GetUnis_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "api/bbsim/bbsim.proto",
diff --git a/api/bbsim/bbsim.proto b/api/bbsim/bbsim.proto
index 086057f..64bd659 100644
--- a/api/bbsim/bbsim.proto
+++ b/api/bbsim/bbsim.proto
@@ -145,6 +145,11 @@
uint32 PonPortId = 1;
}
+message UNIRequest {
+ string OnuSerialNumber = 1;
+ string UniID = 2;
+}
+
// Alarms
message AlarmType {
@@ -282,8 +287,8 @@
rpc GetONUs (Empty) returns (ONUs) {
}
- // Get all the Services
- rpc GetServices (Empty) returns (Services) {
+ // Get all the Services by Uni ID
+ rpc GetServices (UNIRequest) returns (Services) {
}
// Get all the UNIs of an ONU by serial number
@@ -331,4 +336,7 @@
// Get Traffic scheduler information for ONU
rpc GetOnuTrafficSchedulers (ONURequest) returns (ONUTrafficSchedulers) {
}
+ //Return all the UNIs for all the ONUs
+ rpc GetUnis (Empty) returns (UNIs) {
+ }
}
diff --git a/cmd/bbsimctl/bbsimctl.go b/cmd/bbsimctl/bbsimctl.go
index 293c164..9d1ed93 100644
--- a/cmd/bbsimctl/bbsimctl.go
+++ b/cmd/bbsimctl/bbsimctl.go
@@ -38,6 +38,7 @@
commands.RegisterConfigCommands(parser)
commands.RegisterOltCommands(parser)
commands.RegisterONUCommands(parser)
+ commands.RegisterUNICommands(parser)
commands.RegisterServiceCommands(parser)
commands.RegisterPonCommands(parser)
commands.RegisterCompletionCommands(parser)
diff --git a/internal/bbr/devices/validate.go b/internal/bbr/devices/validate.go
index a5f1d85..e0e0f99 100644
--- a/internal/bbr/devices/validate.go
+++ b/internal/bbr/devices/validate.go
@@ -22,6 +22,7 @@
"time"
"github.com/opencord/bbsim/api/bbsim"
+ pb "github.com/opencord/bbsim/api/bbsim"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc"
)
@@ -35,7 +36,12 @@
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
- services, err := client.GetServices(ctx, &bbsim.Empty{})
+ req := pb.UNIRequest{
+ OnuSerialNumber: "",
+ UniID: "",
+ }
+
+ services, err := client.GetServices(ctx, &req)
if err != nil {
log.WithFields(log.Fields{
diff --git a/internal/bbsim/api/onus_handler.go b/internal/bbsim/api/onus_handler.go
index 0a67105..4ea60e7 100644
--- a/internal/bbsim/api/onus_handler.go
+++ b/internal/bbsim/api/onus_handler.go
@@ -583,3 +583,19 @@
return res, nil
}
+
+func (s BBSimServer) GetUnis(ctx context.Context, req *bbsim.Empty) (*bbsim.UNIs, error) {
+ onus, err := s.GetONUs(ctx, req)
+
+ if err != nil {
+ return nil, err
+ }
+ unis := []*bbsim.UNI{}
+ for _, onu := range onus.Items {
+ unis = append(unis, onu.Unis...)
+ }
+ unis_ret := bbsim.UNIs{
+ Items: unis,
+ }
+ return &unis_ret, nil
+}
diff --git a/internal/bbsim/api/services_handler.go b/internal/bbsim/api/services_handler.go
index cfb971f..f016919 100644
--- a/internal/bbsim/api/services_handler.go
+++ b/internal/bbsim/api/services_handler.go
@@ -20,6 +20,7 @@
"context"
"github.com/opencord/bbsim/api/bbsim"
"github.com/opencord/bbsim/internal/bbsim/devices"
+ "strconv"
)
func convertBBSimServiceToProtoService(s *devices.Service) *bbsim.Service {
@@ -50,7 +51,7 @@
return services
}
-func (s BBSimServer) GetServices(ctx context.Context, req *bbsim.Empty) (*bbsim.Services, error) {
+func (s BBSimServer) GetServices(ctx context.Context, req *bbsim.UNIRequest) (*bbsim.Services, error) {
services := bbsim.Services{
Items: []*bbsim.Service{},
@@ -63,7 +64,16 @@
for _, u := range o.UniPorts {
uni := u.(*devices.UniPort)
s := convertBBsimServicesToProtoServices(uni.Services)
- services.Items = append(services.Items, s...)
+ for _, service := range s {
+ intVar, err := strconv.Atoi(req.UniID)
+ if req.UniID == "" && req.OnuSerialNumber == "" {
+ services.Items = append(services.Items, s...)
+ } else if err == nil && service.UniId == uint32(intVar) && service.OnuSn == req.OnuSerialNumber {
+ services.Items = append(services.Items, s...)
+ } else if req.UniID == "" && service.OnuSn == req.OnuSerialNumber {
+ services.Items = append(services.Items, s...)
+ }
+ }
}
}
}
diff --git a/internal/bbsimctl/commands/onu.go b/internal/bbsimctl/commands/onu.go
index bef627e..4ae8841 100644
--- a/internal/bbsimctl/commands/onu.go
+++ b/internal/bbsimctl/commands/onu.go
@@ -35,8 +35,6 @@
const (
DEFAULT_ONU_DEVICE_HEADER_FORMAT = "table{{ .PonPortID }}\t{{ .ID }}\t{{ .SerialNumber }}\t{{ .OperState }}\t{{ .InternalState }}\t{{ .ImageSoftwareExpectedSections }}\t{{ .ImageSoftwareReceivedSections }}\t{{ .ActiveImageEntityId }}\t{{ .CommittedImageEntityId }}"
DEFAULT_ONU_DEVICE_HEADER_FORMAT_WITH_SERVICES = "table{{ .PonPortID }}\t{{ .ID }}\t{{ .SerialNumber }}\t{{ .OperState }}\t{{ .InternalState }}\t{{ .ImageSoftwareExpectedSections }}\t{{ .ImageSoftwareReceivedSections }}\t{{ .ActiveImageEntityId }}\t{{ .CommittedImageEntityId }}\t{{ .Unis }}"
- DEFAULT_UNI_HEADER_FORMAT = "table{{ .OnuSn }}\t{{ .OnuID }}\t{{ .ID }}\t{{ .MeID }}\t{{ .PortNo }}\t{{ .OperState }}"
- DEFAULT_UNI_HEADER_FORMAT_WITH_SERVICES = "table{{ .OnuSn }}\t{{ .OnuID }}\t{{ .ID }}\t{{ .MeID }}\t{{ .PortNo }}\t{{ .OperState }}\t{{ .Services }}"
)
type OnuSnString string
@@ -111,10 +109,15 @@
} `positional-args:"yes" required:"yes"`
}
+type ONUServices struct {
+ Args struct {
+ OnuSn OnuSnString
+ } `positional-args:"yes"`
+}
+
type ONUOptions struct {
List ONUList `command:"list"`
Get ONUGet `command:"get"`
- Unis ONUUnis `command:"unis"`
ShutDown ONUShutDown `command:"shutdown"`
PowerOn ONUPowerOn `command:"poweron"`
RestartEapol ONUEapolRestart `command:"auth_restart"`
@@ -123,6 +126,7 @@
TrafficSchedulers ONUTrafficSchedulers `command:"traffic_schedulers"`
Alarms AlarmOptions `command:"alarms"`
Flows ONUFlows `command:"flows"`
+ Services ONUServices `command:"services"`
}
func RegisterONUCommands(parser *flags.Parser) {
@@ -192,36 +196,6 @@
return nil
}
-func (options *ONUUnis) Execute(args []string) error {
-
- client, conn := connect()
- defer conn.Close()
-
- ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
- defer cancel()
- req := pb.ONURequest{
- SerialNumber: string(options.Args.OnuSn),
- }
- res, err := client.GetOnuUnis(ctx, &req)
-
- if err != nil {
- log.Fatalf("Cannot not get unis for ONU %s: %v", options.Args.OnuSn, err)
- return err
- }
-
- var tableFormat format.Format
- if options.Verbose {
- tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT_WITH_SERVICES)
- } else {
- tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT)
- }
- if err := tableFormat.Execute(os.Stdout, true, res.Items); err != nil {
- log.Fatalf("Error while formatting Unis table: %s", err)
- }
-
- return nil
-}
-
func (options *ONUShutDown) Execute(args []string) error {
client, conn := connect()
@@ -539,3 +513,20 @@
return nil
}
+
+func (options *ONUServices) Execute(args []string) error {
+ services, err := getServices(string(options.Args.OnuSn), "")
+
+ if err != nil {
+ log.Errorf("Cannot get services for ONU %s: %v", options.Args.OnuSn, err)
+ return err
+ }
+
+ // print out
+ tableFormat := format.Format(DEFAULT_SERVICE_HEADER_FORMAT)
+ if err := tableFormat.Execute(os.Stdout, true, services.Items); err != nil {
+ log.Fatalf("Error while formatting ONUs table: %s", err)
+ }
+
+ return nil
+}
diff --git a/internal/bbsimctl/commands/services.go b/internal/bbsimctl/commands/services.go
index d3b6bdd..1f3216a 100644
--- a/internal/bbsimctl/commands/services.go
+++ b/internal/bbsimctl/commands/services.go
@@ -41,7 +41,7 @@
_, _ = parser.AddCommand("service", "Service Commands", "Commands to interact with ONU Services", &ServiceOptions{})
}
-func getServices() *pb.Services {
+func getServices(OnuSn string, UniID string) (*pb.Services, error) {
client, conn := connect()
defer conn.Close()
@@ -50,17 +50,23 @@
ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
defer cancel()
- services, err := client.GetServices(ctx, &pb.Empty{})
+ req := pb.UNIRequest{
+ OnuSerialNumber: OnuSn,
+ UniID: UniID,
+ }
+
+ services, err := client.GetServices(ctx, &req)
+
+ return services, err
+}
+
+func (options *ServiceList) Execute(args []string) error {
+ services, err := getServices("", "")
+
if err != nil {
log.Fatalf("could not get OLT: %v", err)
return nil
}
- return services
-}
-
-func (options *ServiceList) Execute(args []string) error {
- services := getServices()
-
// print out
tableFormat := format.Format(DEFAULT_SERVICE_HEADER_FORMAT)
if err := tableFormat.Execute(os.Stdout, true, services.Items); err != nil {
diff --git a/internal/bbsimctl/commands/uni.go b/internal/bbsimctl/commands/uni.go
new file mode 100644
index 0000000..ba1c795
--- /dev/null
+++ b/internal/bbsimctl/commands/uni.go
@@ -0,0 +1,141 @@
+/*
+ * Portions copyright 2019-present Open Networking Foundation
+ * Original copyright 2019-present Ciena Corporation
+ *
+ * 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.
+ */
+
+package commands
+
+import (
+ "context"
+ "os"
+
+ "github.com/jessevdk/go-flags"
+ pb "github.com/opencord/bbsim/api/bbsim"
+ "github.com/opencord/bbsim/internal/bbsimctl/config"
+ "github.com/opencord/cordctl/pkg/format"
+ log "github.com/sirupsen/logrus"
+)
+
+const (
+ DEFAULT_UNI_HEADER_FORMAT = "table{{ .OnuSn }}\t{{ .OnuID }}\t{{ .ID }}\t{{ .MeID }}\t{{ .PortNo }}\t{{ .OperState }}"
+ DEFAULT_UNI_HEADER_FORMAT_WITH_SERVICES = "table{{ .OnuSn }}\t{{ .OnuID }}\t{{ .ID }}\t{{ .MeID }}\t{{ .PortNo }}\t{{ .OperState }}\t{{ .Services }}"
+)
+
+type UniIdInt string
+
+type UNIList struct {
+ Verbose bool `short:"v" long:"verbose" description:"Print all the Unis from all the ONUs"`
+}
+
+type UNIGet struct {
+ Verbose bool `short:"v" long:"verbose" description:"Print all the informations we have about UNIs"`
+ Args struct {
+ OnuSn OnuSnString
+ } `positional-args:"yes" required:"yes"`
+}
+
+type UNIServices struct {
+ Verbose bool `short:"v" long:"verbose" description:"Print all the Services from the specified UNI"`
+ Args struct {
+ OnuSn OnuSnString
+ UniId UniIdInt
+ } `positional-args:"yes"`
+}
+
+type UNIOptions struct {
+ List UNIList `command:"list"`
+ Get UNIGet `command:"get"`
+ Services UNIServices `command:"services"`
+}
+
+func RegisterUNICommands(parser *flags.Parser) {
+ _, _ = parser.AddCommand("uni", "UNI Commands", "Commands to query and manipulate UNIs", &UNIOptions{})
+}
+
+func (options *UNIList) Execute(args []string) error {
+ client, conn := connect()
+ defer conn.Close()
+
+ // Contact the server and print out its response.
+ ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
+ defer cancel()
+
+ unis, err := client.GetUnis(ctx, &pb.Empty{})
+ if err != nil {
+ log.Fatalf("could not get UNIs: %v", err)
+ return err
+ }
+
+ var tableFormat format.Format
+ if options.Verbose {
+ tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT_WITH_SERVICES)
+ } else {
+ tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT)
+ }
+ if err := tableFormat.Execute(os.Stdout, true, unis.Items); err != nil {
+ log.Fatalf("Error while formatting Unis table: %s", err)
+ }
+
+ return nil
+}
+
+func (options *UNIGet) Execute(args []string) error {
+
+ client, conn := connect()
+ defer conn.Close()
+
+ ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
+ defer cancel()
+ req := pb.ONURequest{
+ SerialNumber: string(options.Args.OnuSn),
+ }
+ res, err := client.GetOnuUnis(ctx, &req)
+
+ if err != nil {
+ log.Fatalf("Cannot not get unis for ONU %s: %v", options.Args.OnuSn, err)
+ return err
+ }
+
+ var tableFormat format.Format
+ if options.Verbose {
+ tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT_WITH_SERVICES)
+ } else {
+ tableFormat = format.Format(DEFAULT_UNI_HEADER_FORMAT)
+ }
+ if err := tableFormat.Execute(os.Stdout, true, res.Items); err != nil {
+ log.Fatalf("Error while formatting Unis table: %s", err)
+ }
+
+ return nil
+}
+
+//Get Services for specified UNI
+//First get UNIs from specified ONU SN
+//Then get Services from appropriate UNI
+func (options *UNIServices) Execute(args []string) error {
+ services, err := getServices(string(options.Args.OnuSn), string(options.Args.UniId))
+
+ if err != nil {
+ log.Fatalf("Cannot not get services for ONU %s and UNI %s: %v", options.Args.OnuSn, options.Args.UniId, err)
+ return err
+ }
+
+ tableFormat := format.Format(DEFAULT_SERVICE_HEADER_FORMAT)
+ if err := tableFormat.Execute(os.Stdout, true, services.Items); err != nil {
+ log.Fatalf("Error while formatting ONUs table: %s", err)
+ }
+
+ return nil
+}