Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceConfig ¶
func DeviceConfig(c []byte) *deviceConfig
DeviceConfig sets the startup config of the device to c. Today we do not allow the configuration to be changed in flight, but this can be implemented in the future.
func DisableRIBForwardReferences ¶
func DisableRIBForwardReferences() *disableFwdRefs
DisableRIBForwardReferences instructs gribigo to disallow forward references within the RIB.
func GRIBIPort ¶
GRIBIPort is a device option that specifies that the port that should be listened on is i.
func TLSCredsFromFile ¶
TLSCredsFromFile loads the credentials from the specified cert and key file and returns them such that they can be used for the gNMI and gRIBI servers.
Types ¶
type DevOpt ¶
type DevOpt interface {
// contains filtered or unexported methods
}
DevOpt is an interface that is implemented by options that can be handed to New() for the device.
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a wrapper struct that contains all functionalities for containing a gRIBI and gNMI target that has a fake system RIB.