From e2e4c8c7e16efdd6a375ff1082a779676913b9b5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 11 Sep 2017 15:21:55 -0400 Subject: [PATCH] Add SMM UUID to info when available --- .../confluent/discovery/handlers/smm.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/confluent_server/confluent/discovery/handlers/smm.py b/confluent_server/confluent/discovery/handlers/smm.py index 954c8e9d..1244ed68 100644 --- a/confluent_server/confluent/discovery/handlers/smm.py +++ b/confluent_server/confluent/discovery/handlers/smm.py @@ -13,11 +13,28 @@ # limitations under the License. import confluent.discovery.handlers.bmc as bmchandler +import struct + +def fixuuid(baduuid): + # SMM dumps it out in hex + uuidprefix = (baduuid[:8], baduuid[8:12], baduuid[12:16]) + a = struct.pack('