From 2c9be7a4c4b864131431bf47b7ba1f0faccd907b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 24 Feb 2022 08:08:50 -0500 Subject: [PATCH] Remove slp snoop of XCC SSDP snoop catches XCC, and do only SSDP for consistent format of snoop info coming into the xcc handler. --- confluent_server/confluent/discovery/core.py | 6 +++--- confluent_server/confluent/discovery/protocols/ssdp.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 280cc1ac..7ca752a4 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -106,7 +106,7 @@ class nesteddict(dict): nodehandlers = { 'service:lenovo-smm': smm, 'service:lenovo-smm2': smm, - 'service:management-hardware.Lenovo:lenovo-xclarity-controller': xcc, + 'lenovo-xcc': xcc, 'service:management-hardware.IBM:integrated-management-module2': imm, 'pxe-client': pxeh, 'onie-switch': None, @@ -122,7 +122,7 @@ servicenames = { 'cumulus-switch': 'cumulus-switch', 'service:lenovo-smm': 'lenovo-smm', 'service:lenovo-smm2': 'lenovo-smm2', - 'service:management-hardware.Lenovo:lenovo-xclarity-controller': 'lenovo-xcc', + 'lenovo-xcc': 'lenovo-xcc', 'service:management-hardware.IBM:integrated-management-module2': 'lenovo-imm2', 'service:io-device.Lenovo:management-module': 'lenovo-switch', 'service:thinkagile-storage': 'thinkagile-storagebmc', @@ -135,7 +135,7 @@ servicebyname = { 'cumulus-switch': 'cumulus-switch', 'lenovo-smm': 'service:lenovo-smm', 'lenovo-smm2': 'service:lenovo-smm2', - 'lenovo-xcc': 'service:management-hardware.Lenovo:lenovo-xclarity-controller', + 'lenovo-xcc': 'lenovo-xcc', 'lenovo-imm2': 'service:management-hardware.IBM:integrated-management-module2', 'lenovo-switch': 'service:io-device.Lenovo:management-module', 'thinkagile-storage': 'service:thinkagile-storagebmc', diff --git a/confluent_server/confluent/discovery/protocols/ssdp.py b/confluent_server/confluent/discovery/protocols/ssdp.py index 65c662c7..c4297173 100644 --- a/confluent_server/confluent/discovery/protocols/ssdp.py +++ b/confluent_server/confluent/discovery/protocols/ssdp.py @@ -388,7 +388,7 @@ def check_fish(urldata): myuuid = '-'.join([myuuid[:8], myuuid[8:12], myuuid[12:16], myuuid[16:20], myuuid[20:]]) data['uuid'] = myuuid data['attributes'] = peerinfo - data['services'] = ['service:management-hardware.Lenovo:lenovo-xclarity-controller'] + data['services'] = ['lenovo-xcc'] return data except (IndexError, KeyError): return None