"gateway6": ("IPv6Gateway", QFT_OTHER, 0, "The ipv6 gateway"),
"mac_prefix": ("MacPrefix", QFT_OTHER, 0, "The mac prefix"),
"network_type": ("NetworkType", QFT_OTHER, 0, "The network type"),
+ "serial_no": ("SerialNo", QFT_NUMBER, 0, _SERIAL_NO_DOC % "Network"),
+ "uuid": ("UUID", QFT_TEXT, 0, "Network UUID"),
}
}
-def _GetNetworkStatsField(field, kind, ctx):
+def _GetNetworkStatsField(field, kind, ctx, _):
"""Gets the value of a "stats" field from L{NetworkQueryData}.
@param field: Field name
return int(value)
except (ValueError, TypeError):
logging.exception("Failed to convert network field '%s' (value %r) to int",
- value, field)
+ field, value)
return _FS_UNAVAIL