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

Adjust nbi init to match topology service refactoring

parent 51710b71
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
Pipeline #106418 failed
This commit is part of merge request !343. Comments created here will be created in the context of that merge request.
...@@ -68,14 +68,21 @@ func initialize() error { ...@@ -68,14 +68,21 @@ func initialize() error {
return err return err
} }
nodeService := nodes.NewNodeService(nodes.NewDatabaseNodeStore())
portService := ports.NewPortService(ports.NewDatabasePortStore())
c = &Core{ c = &Core{
pndStore: nucleus.NewPndStore(), pndStore: nucleus.NewPndStore(),
userService: rbacImpl.NewUserService(rbacImpl.NewUserStore()), userService: rbacImpl.NewUserService(rbacImpl.NewUserStore()),
roleService: rbacImpl.NewRoleService(rbacImpl.NewRoleStore()), roleService: rbacImpl.NewRoleService(rbacImpl.NewRoleStore()),
topologyService: topology.NewTopologyService(topology.NewDatabaseTopologyStore()), topologyService: topology.NewTopologyService(
nodeService: nodes.NewNodeService(nodes.NewDatabaseNodeStore()), topology.NewDatabaseTopologyStore(),
portService: ports.NewPortService(ports.NewDatabasePortStore()), nodeService,
stopChan: make(chan os.Signal, 1), portService,
),
nodeService: nodeService,
portService: portService,
stopChan: make(chan os.Signal, 1),
} }
// Setting up signal capturing // Setting up signal capturing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment