Skip to content
Snippets Groups Projects
principalNetworkDomain.go 834 B
Newer Older
  • Learn to ignore specific revisions
  • package nucleus
    
    
    import "code.fbi.h-da.de/cocsn/gosdn/nucleus/interfaces"
    
    
    type pndImplementation struct {
    
    	name         string
    	sbiContainer []interfaces.SouthboundInterface
    }
    
    //NewPNDImplementation creates a Principle Network Domain
    func NewPNDImplementation(name string, sbi ...interfaces.SouthboundInterface) interfaces.PrincipalNetworkDomain {
    	return &pndImplementation{
    		name:         name,
    		sbiContainer: sbi,
    	}
    
    }
    
    // Interface satisfaction
    func (pnd *pndImplementation) Destroy() error {
    	return destroy()
    }
    
    func (pnd *pndImplementation) AddSbi() error {
    	return addSbi()
    }
    
    func (pnd *pndImplementation) RemoveSbi() error {
    	return removeSbi()
    }
    
    // Actual implementation, bind to struct if
    // neccessary
    func destroy() error {
    	return nil
    }
    
    func addSbi() error {
    	return nil
    }
    
    func removeSbi() error {
    	return nil
    }