Open sacckth opened 4 months ago
Also the chassis-mac address path:
--- a/app/server.go
+++ b/app/server.go
@@ -726,7 +726,7 @@ START:
if strings.Contains(p, "platform/chassis/type") {
sysInfo.ChassisType = u.GetVal().GetStringVal()
}
- if strings.Contains(p, "platform/chassis/mac-address") {
+ if strings.Contains(p, "platform/chassis/hw-mac-address") {
sysInfo.ChassisMacAddress = u.GetVal().GetStringVal()
Also system hostname:
@@ -717,7 +717,7 @@ START:
sysInfo.IPAddrV6 = strings.Split(ip, "/")[0]
}
}
- if strings.Contains(p, "system/name") {
+ if strings.Contains(p, "system/name/host-name") {
sysInfo.Name = u.GetVal().GetStringVal()
}
And some metrics under app/metric.go
on
app/server.go
following change needs to happen:Some of the acls need to be changed for this to work on 24 release: