Skip to content
Snippets Groups Projects
Commit fb85fc23 authored by André Sterba's avatar André Sterba
Browse files

WIP

parent 5a3bac6f
No related branches found
No related tags found
5 merge requests!376Add additional example application hostname-checker,!349Northbound refactoring to implement NIB concept for devices,!343Add basic application framework and example application to show interaction between events an NBI,!339Create basic venv-manager for use with arista,!324Provide prototype implementation for topology handling
...@@ -47,7 +47,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap ...@@ -47,7 +47,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap
TargetNode: targetNode, TargetNode: targetNode,
TargetPort: targetPort, TargetPort: targetPort,
} }
err = topologyService.AddLink(link) err = t.topologyService.AddLink(link)
if err != nil { if err != nil {
return nil, status.Errorf(codes.Aborted, "%v", err) return nil, status.Errorf(codes.Aborted, "%v", err)
} }
...@@ -60,7 +60,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap ...@@ -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 // GetTopology returns the current topology in the form of all links
func (t Topology) GetTopology(ctx context.Context, request *apb.GetTopologyRequest) (*apb.GetTopologyResponse, error) { 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 { if err != nil {
return nil, status.Errorf(codes.Aborted, "%v", err) return nil, status.Errorf(codes.Aborted, "%v", err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment