Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove irs direct connect functionality and update docs #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/ahs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ let you inspect and manipulate the AHS and ERS configuration and submit data.
.. automethod:: get_ers_settings
.. ilo_output:: get_ers_settings
.. automethod:: set_ers_irs_connect
.. automethod:: set_ers_direct_connect
.. automethod:: dc_registration_complete
.. automethod:: set_ers_web_proxy
.. automethod:: ers_ahs_submit
.. automethod:: trigger_l2_collection
.. automethod:: trigger_test_event
Expand Down
3 changes: 0 additions & 3 deletions docs/methods
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ clear_ilo_event_log
clear_server_event_log
clear_server_power_on_time
computer_lock_config
dc_registration_complete
delete_federation_group
delete_user
disable_ers
Expand Down Expand Up @@ -95,9 +94,7 @@ reset_rib
reset_server
set_ahs_status
set_asset_tag
set_ers_direct_connect
set_ers_irs_connect
set_ers_web_proxy
set_federation_multicast
set_language
set_host_power
Expand Down
28 changes: 0 additions & 28 deletions hpilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,11 +904,6 @@ def computer_lock_config(self, computer_lock=None, computer_lock_key=None):
elements.append(etree.Element('COMPUTER_LOCK_KEY', VALUE=computer_lock_key))
return self._control_tag('RIB_INFO', 'COMPUTER_LOCK_CONFIG', elements=elements)

def dc_registration_complete(self):
"""Complete the ERS registration of your device after calling
set_ers_direct_connect"""
return self._control_tag('RIB_INFO', 'DC_REGISTRATION_COMPLETE')

def delete_federation_group(self, group_name):
"""Delete the specified federation group membership"""
return self._control_tag('RIB_INFO', 'DELETE_FEDERATION_GROUP', attrib={'GROUP_NAME': group_name})
Expand Down Expand Up @@ -1843,19 +1838,6 @@ def set_critical_temp_remain_off(self, value):
status = {True: 'Yes', False: 'No'}[value]
return self._control_tag('SERVER_INFO', 'SET_CRITICAL_TEMP_REMAIN_OFF', attrib={'VALUE': value})

def set_ers_direct_connect(self, user_id, password, proxy_url=None,
proxy_port=None, proxy_username=None, proxy_password=None):
"""Register your iLO with HP Insigt Online using Direct Connect. Note
that you must also call dc_registration_complete"""
elements = [
etree.Element('ERS_HPP_USER_ID', attrib={'VALUE': str(user_id)}),
etree.Element('ERS_HPP_PASSWORD', attrib={'VALUE': str(password)}),
]
for key, value in locals().items():
if key.startswith('proxy_') and value is not None:
elements.append(etree.Element('ERS_WEB_' + key, attrib={'VALUE': str(value)}))
return self._control_tag('RIB_INFO', 'SET_ERS_DIRECT_CONNECT', elements=elements)

def set_ers_irs_connect(self, ers_destination_url, ers_destination_port):
"""Connect to an Insight Remote Support server"""
elements = [
Expand All @@ -1864,16 +1846,6 @@ def set_ers_irs_connect(self, ers_destination_url, ers_destination_port):
]
return self._control_tag('RIB_INFO', 'SET_ERS_IRS_CONNECT', elements=elements)

def set_ers_web_proxy(self, proxy_url, proxy_port, proxy_username=None,
proxy_password=None):
"""Register your iLO with HP Insigt Online using Direct Connect. Note
that you must also call dc_registration_complete"""
elements = []
for key, value in locals().items():
if key.startswith('proxy_') and value is not None:
elements.append(etree.Element('ERS_WEB_' + key, attrib={'VALUE': str(value)}))
return self._control_tag('RIB_INFO', 'SET_ERS_WEB_PROXY', elements=elements)

def set_federation_multicast(self, multicast_federation_enabled=True, multicast_discovery_enabled=True,
multicast_announcement_interval=600, ipv6_multicast_scope="Site", multicast_ttl=5):
"""Set the Federation multicast configuration"""
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xml/generate_requests
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ method_args = {
'profile_desc_download': [['TestProfileDesc', 'TestProfile', 'Description']],
'set_ahs_status': [[True]],
'set_asset_tag': 'NL000001',
'set_ers_direct_connect': [['ErsUser', 'ErsPassword', 'ErsProxyHost', 3128]],
'set_ers_irs_connect': [['ErsUrl', 9999]],
'set_ers_web_proxy': [['ErsProxy', 3128]],
'set_federation_multicast': [[False]],
'set_language': [['en']],
'set_host_power': [[False]],
Expand Down