Skip to content
Snippets Groups Projects

Let user set a name for a device or autogenerate it

Merged Ghost User requested to merge istaester/autogenerate-device-names into develop
2 files
+ 26
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
0
@@ -6,6 +6,18 @@ import (
"github.com/openconfig/ygot/ygot"
)
type DeviceIdentifier interface {
IsDeviceIdentifier()
}
type StringIdentifier string
func (si StringIdentifier) IsDeviceIdentifier() {}
type UUIDIdentifier uuid.UUID
func (ui UUIDIdentifier) IsDeviceIdentifier() {}
// Device represents an Orchestrated Network Device (OND) which is managed by
// nucleus
type Device struct {
Loading