From 5008128d57ae9629d01c37a65e9fd4a3f24d0c44 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 19 Sep 2019 10:02:40 -0400 Subject: [PATCH] Add IPv6 support to TSM TSM firmware fixes enable IPv6, enable our support of it. --- confluent_server/confluent/discovery/handlers/tsm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/confluent_server/confluent/discovery/handlers/tsm.py b/confluent_server/confluent/discovery/handlers/tsm.py index 610a2e3b..3d5ef74c 100644 --- a/confluent_server/confluent/discovery/handlers/tsm.py +++ b/confluent_server/confluent/discovery/handlers/tsm.py @@ -24,6 +24,7 @@ getaddrinfo = eventlet.support.greendns.getaddrinfo webclient = eventlet.import_patched('pyghmi.util.webclient') class NodeHandler(generic.NodeHandler): + devname = 'TSM' DEFAULT_USER = 'USERID' DEFAULT_PASS = 'PASSW0RD' @@ -165,6 +166,12 @@ class NodeHandler(generic.NodeHandler): rsp, status = wc.grab_json_response_with_status( '/api/settings/network/{0}'.format(net['id']), net, method='PUT') break + elif self.ipaddr.startswith('fe80::'): + self.configmanager.set_node_attributes( + {nodename: {'hardwaremanagement.manager': self.ipaddr}}) + else: + raise exc.TargetEndpointUnreachable( + 'hardwaremanagement.manager must be set to desired address (No IPv6 Link Local detected)') rsp, status = wc.grab_json_response_with_status('/api/session', method='DELETE')