Newer
Older
import (
"code.fbi.h-da.de/cocsn/gosdn/nucleus/interfaces"
"github.com/google/uuid"
)
sbiContainer map[string]*nucleus.SouthboundInterface
devices map[uuid.UUID]Device
//NewPND creates a Principle Network Domain
func NewPND(name string, sbi *nucleus.SouthboundInterface) nucleus.PrincipalNetworkDomain {
sbic := make(map[string]*nucleus.SouthboundInterface)
sbic["default"] = sbi
return &pndImplementation{
name: name,
}
// Interface satisfaction
func (pnd *pndImplementation) Destroy() error {
return destroy()
}
func (pnd *pndImplementation) AddSbi() error {
return addSbi()
}
func (pnd *pndImplementation) RemoveSbi() error {
return removeSbi()
}
func (pnd *pndImplementation) AddDevice(device Device) error {
return addDevice(device)
}
func (pnd *pndImplementation) RemoveDevice(uuid uuid.UUID) error {
return removeDevice(uuid)
}
// Actual implementation, bind to struct if
// neccessary
func destroy() error {
return nil
}
func addSbi() error {
return nil
}
func removeSbi() error {
return nil
}
func addDevice(device Device) error {
return nil
}
func removeDevice(uuid uuid.UUID) error {
return nil
}