Skip to content
Snippets Groups Projects

Enable export and import of SDN configuration

Merged Ghost User requested to merge export-import-sdn-config into develop
1 file
+ 4
5
Compare changes
  • Side-by-side
  • Inline
@@ -6,7 +6,7 @@ import (
@@ -6,7 +6,7 @@ import (
cm "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/configurationmanagement"
cm "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/configurationmanagement"
ne "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/networkelement"
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"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/grpc/status"
@@ -14,13 +14,12 @@ import (
@@ -14,13 +14,12 @@ import (
// ConfigurationManagementServer represents a core server.
// ConfigurationManagementServer represents a core server.
type ConfigurationManagementServer struct {
type ConfigurationManagementServer struct {
networkDomain networkdomain.NetworkDomain
networkElementStore networkelement.Store
//pndStore networkdomain.PndStore
}
}
// ConfigurationManagementServer receives a pndStore and returns a new coreServer.
// ConfigurationManagementServer receives a pndStore and returns a new coreServer.
func NewConfigurationManagementServer(networkDomain networkdomain.NetworkDomain) *ConfigurationManagementServer {
func NewConfigurationManagementServer(networkElementStore networkelement.Store) *ConfigurationManagementServer {
return &ConfigurationManagementServer{networkDomain: networkDomain}
return &ConfigurationManagementServer{networkElementStore: networkElementStore}
}
}
// ExportSDNConfig returns the SDN configuration.
// ExportSDNConfig returns the SDN configuration.
Loading