Skip to content

Commit

Permalink
Adding support for SNMP server object
Browse files Browse the repository at this point in the history
  • Loading branch information
trisha-dell committed Nov 6, 2024
1 parent ccdedb6 commit 71c3480
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
6 changes: 1 addition & 5 deletions ProgrammersGuideExamples/snmp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@
SNMP_SERVER = CONN.snmp_server.get_snmp_server_details(SNMP_SERVER['id'])
print(SNMP_SERVER)

# # get SNMP server details by NAS server
# snmp_server = CONN.snmp_server.get_snmp_server_by_nas_server_id(CREATE_PARAMS['nas_server_id'])
# print(snmp_server)

# modify SNMP server
MODIFY_SNMP_SERVER = CONN.snmp_server.modify_snmp_server(SNMP_SERVERS[0]['id'],
MODIFY_PARAMS)
MODIFY_PARAMS)
print(MODIFY_SNMP_SERVER)

# delete SNMP server
Expand Down
21 changes: 0 additions & 21 deletions PyPowerStore/objects/snmp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,6 @@ def get_snmp_server_details(self, snmp_server_id):
payload=None,
querystring=querystring)

# def get_snmp_server_by_nas_server_id(self, nas_server_id):
# """Get details of a SNMP server by NAS server ID.

# :param nas_server_id: The unique identifier of the NAS Server
# :type nas_server_id: str
# :return: SNMP server details
# :rtype: dict
# """
# querystring = SELECT_ALL_SNMP

# LOG.info("Getting SNMP server details by nas server id: '%s'" % nas_server_id)
# return self.snmp_server_client.request(
# constants.GET,
# GET_SNMP_DETAILS_BY_NAS_SERVER_URL.format(
# self.server_ip),
# payload=None, querystring=helpers.prepare_querystring(
# querystring,
# nas_server_id=constants.EQUALS + nas_server_id,
# )
# )

def create_snmp_server(self, payload):
"""Create an SNMP server.
Expand Down

0 comments on commit 71c3480

Please sign in to comment.