From d68c035fc194e5bcf41da7b7bb6fa544ae44dee8 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Mon, 14 Oct 2024 12:30:18 +0100 Subject: [PATCH] UINT64 type now available within the PID Proto so add the network speed PIDs --- data/rdm/draft_pids.proto | 101 +++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/data/rdm/draft_pids.proto b/data/rdm/draft_pids.proto index a0eb01ac1..8009cfc2d 100644 --- a/data/rdm/draft_pids.proto +++ b/data/rdm/draft_pids.proto @@ -362,57 +362,56 @@ pid { } get_sub_device_range: ROOT_OR_SUBDEVICE } -# TODO(Peter): Need to implement the UINT64 type within the PID Proto -#pid { -# name: "IFC_INTERFACE_LINE_SPEED" -# value: -# get_request { -# field { -# type: UINT32 -# name: "interface_id" -# range { -# min: 1 -# max: 4294967295 -# } -# } -# } -# get_response { -# field { -# type: UINT32 -# name: "interface_id" -# } -# field { -# type: UINT64 -# name: "line_speed" -# } -# } -# get_sub_device_range: ROOT_OR_SUBDEVICE -#} -#pid { -# name: "IFC_INTERFACE_UTILIZATION" -# value: -# get_request { -# field { -# type: UINT32 -# name: "interface_id" -# range { -# min: 1 -# max: 4294967295 -# } -# } -# } -# get_response { -# field { -# type: UINT32 -# name: "interface_id" -# } -# field { -# type: UINT64 -# name: "utilization" -# } -# } -# get_sub_device_range: ROOT_OR_SUBDEVICE -#} +pid { + name: "IFC_INTERFACE_LINE_SPEED" + value: + get_request { + field { + type: UINT32 + name: "interface_id" + range { + min: 1 + max: 4294967295 + } + } + } + get_response { + field { + type: UINT32 + name: "interface_id" + } + field { + type: UINT64 + name: "line_speed" + } + } + get_sub_device_range: ROOT_OR_SUBDEVICE +} +pid { + name: "IFC_INTERFACE_UTILIZATION" + value: + get_request { + field { + type: UINT32 + name: "interface_id" + range { + min: 1 + max: 4294967295 + } + } + } + get_response { + field { + type: UINT32 + name: "interface_id" + } + field { + type: UINT64 + name: "utilization" + } + } + get_sub_device_range: ROOT_OR_SUBDEVICE +} pid { name: "IFC_INTERFACE_DUPLEX_MODE" value: