diff --git a/providers/arista/provider/provider.go b/providers/arista/provider/provider.go index 3f9dd82b54..c698e08bbc 100644 --- a/providers/arista/provider/provider.go +++ b/providers/arista/provider/provider.go @@ -164,11 +164,21 @@ func (s *Service) detect(asset *inventory.Asset, conn *connection.AristaConnecti asset.Id = conn.Conf.Type asset.Name = conn.Conf.Host + version := "" + arch := "" + aristaVersion, err := conn.GetVersion() + if err == nil { + version = aristaVersion.Version + arch = aristaVersion.Architecture + } + asset.Platform = &inventory.Platform{ - Name: "arista", - Family: []string{"arista"}, - Kind: "api", - Title: "Arista EOS", + Name: "arista-eos", + Version: version, + Arch: arch, + Family: []string{"arista"}, + Kind: "api", + Title: "Arista EOS", } id, err := conn.Identifier()