Skip to content
Snippets Groups Projects
Commit 553ca351 authored by Neil Schark's avatar Neil Schark
Browse files

wip

parent 00a5127b
No related branches found
No related tags found
2 merge requests!406Draft: Add backup script,!404Enable export and import of SDN configuration
Pipeline #123842 failed
This commit is part of merge request !404. Comments created here will be created in the context of that merge request.
......@@ -6,7 +6,7 @@ import (
cm "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/configurationmanagement"
ne "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/networkelement"
"code.fbi.h-da.de/danet/gosdn/controller/interfaces/networkdomain"
"code.fbi.h-da.de/danet/gosdn/controller/interfaces/networkelement"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
......@@ -14,13 +14,12 @@ import (
// ConfigurationManagementServer represents a core server.
type ConfigurationManagementServer struct {
networkDomain networkdomain.NetworkDomain
//pndStore networkdomain.PndStore
networkElementStore networkelement.Store
}
// ConfigurationManagementServer receives a pndStore and returns a new coreServer.
func NewConfigurationManagementServer(networkDomain networkdomain.NetworkDomain) *ConfigurationManagementServer {
return &ConfigurationManagementServer{networkDomain: networkDomain}
func NewConfigurationManagementServer(networkElementStore networkelement.Store) *ConfigurationManagementServer {
return &ConfigurationManagementServer{networkElementStore: networkElementStore}
}
// ExportSDNConfig returns the SDN configuration.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment