Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
muriloAvlis committed Apr 16, 2024
1 parent e1a4f76 commit dba090a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/nib/rnib/rnib.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ func (c *Client) HasRANFunction(ctx context.Context, nodeID topoapi.ID, oid stri

// Gets E2 Node aspects
func (c *Client) GetE2NodeAspects(ctx context.Context, nodeID topoapi.ID) (*topoapi.E2Node, error) {
log.Debug(object.GetEntity().GetKindID())
log.Debug(object.GetKind().GetName())
log.Info("test")
log.Info("test2")

// get object by NodeID
object, err := c.client.Get(ctx, nodeID)
if err != nil {
return nil, err
}

log.Debug(object.GetEntity().GetKindID())
log.Debug(object.GetKind().GetName())
log.Info("test")
log.Info("test2")

// check if object is an E2 Node
if object.GetEntity().GetKindID() != "e2node" {
return nil, errors.NewInvalid("The topo object with ID %v is not an E2 Node", nodeID)
Expand Down

0 comments on commit dba090a

Please sign in to comment.