diff --git a/controller/northbound/server/topology.go b/controller/northbound/server/topology.go index 5bd6985470f5896b5694903c8d7b719e9369422e..bd4acf26a428c7f9db05b41c9bd6a1b2d24a9226 100644 --- a/controller/northbound/server/topology.go +++ b/controller/northbound/server/topology.go @@ -47,7 +47,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap TargetNode: targetNode, TargetPort: targetPort, } - err = topologyService.AddLink(link) + err = t.topologyService.AddLink(link) if err != nil { return nil, status.Errorf(codes.Aborted, "%v", err) } @@ -60,7 +60,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap // GetTopology returns the current topology in the form of all links func (t Topology) GetTopology(ctx context.Context, request *apb.GetTopologyRequest) (*apb.GetTopologyResponse, error) { - topo, err := topologyService.GetAll() + topo, err := t.topologyService.GetAll() if err != nil { return nil, status.Errorf(codes.Aborted, "%v", err) }