diff --git a/README.md b/README.md index aa809cb..05c2fe3 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ Thus, by simply specifying the Device Type name `onload`, we get the Onload capa If configured with `probe_pps` or `probe_ptp`, this plugin will also detect devices under `/dev/pps*` and `/dev/ptp*`. The will be made available as `pps` and `ptp` device types. - * `/pps/` - * `/ptp/` + * `none/pps/` : for example `/none/pps/pps0` + * `none/ptp/` : for example `/none/ptp/ptp1` ## Plugin Configuration @@ -209,6 +209,7 @@ Here we are with this same capability for [HashiCorp Nomad](https://www.nomadpro * [ ] Device Statistics * [ ] Redis example * [ ] XDP example + * [ ] Expose Nomad-selected interfaces via environment variables, e.g. how does `device "ptp" {}` become `/dev/ptp1` inside the config? ## Credits and License diff --git a/examples/terraform/sfptpd/main.tf b/examples/terraform/sfptpd/main.tf index 8ed5a30..1ac8b8b 100644 --- a/examples/terraform/sfptpd/main.tf +++ b/examples/terraform/sfptpd/main.tf @@ -24,7 +24,7 @@ locals { # device_type = "" # or picka "pps" or "ptp" device is_privileged = "false" - device_type = "ptp" + device_type = "none/ptp/ptp0" } terraform { diff --git a/internal/onload_device/fingerprint.go b/internal/onload_device/fingerprint.go index c05441f..70cc453 100644 --- a/internal/onload_device/fingerprint.go +++ b/internal/onload_device/fingerprint.go @@ -282,7 +282,7 @@ func (d *OnloadDevicePlugin) deviceGroupFromFingerprintData(groupName string, de deviceGroup := &device.DeviceGroup{ Vendor: dev.Vendor, Type: dev.DeviceType, - Name: groupName, + Name: dev.Model, Devices: devices, Attributes: map[string]*structs.Attribute{}, }