Skip to content
Snippets Groups Projects
device.go 770 B
Newer Older
  • Learn to ignore specific revisions
  • package device
    
    import (
    
    	"code.fbi.h-da.de/danet/gosdn/controller/interfaces/southbound"
    	"code.fbi.h-da.de/danet/gosdn/controller/interfaces/transport"
    
    	"github.com/google/uuid"
    	"github.com/openconfig/ygot/ygot"
    	"google.golang.org/protobuf/proto"
    
    
    	tpb "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/transport"
    
    )
    
    // Device represents an Orchestrated Network Device (OND) which is managed by
    // nucleus
    type Device interface {
    	ID() uuid.UUID
    	Model() ygot.GoStruct
    	Transport() transport.Transport
    	Name() string
    	SBI() southbound.SouthboundInterface
    	ProcessResponse(proto.Message) error
    }
    
    
    // Details contains details of a device used by the cSBI mechanism
    type Details struct {
    	ID              string
    	Address         string
    	TransportOption *tpb.TransportOption
    }