Developing lightweight computation at the DSG edge

Commit 10701441 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[fetch] Parse "SnmpIndex" values as strings

The "SnmpIndex" values are mostly numbers but, since the web interface
allows arbitrary strings, some other values are used ("a", "?", etc.).

Partially fixes #2

Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent d0b59961
......@@ -87,7 +87,7 @@ type Device struct {
GraphServer int `xml:"graph_server,attr"`
Created string `xml:"created,attr"`
Updated string `xml:"updated,attr"`
SnmpIndex int `xml:"snmp_index,attr"`
SnmpIndex string `xml:"snmp_index,attr"`
Firmware string `xml:"firmware,attr"`
Name string `xml:"name,attr"`
Interfaces []Interface `xml:"interface"`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment