
Some big changes here: Rename connection.py to server.py Refactor about half of server.py into a new types.py module which builds classes for each resource type, and auto-builds links to fetch sub-resources from each type. Add examples/walk-chassis.py to demonstrate how to use the Root and Chassis classes to walk all the objects returned from /rest/v1/chassis/ Import oslo_log and start using it (more to do here, it's not working quite yet).
6 lines
157 B
Python
6 lines
157 B
Python
from redfish import connection
|
|
|
|
host = '127.0.0.1'
|
|
user_name = 'Admin'
|
|
password = 'password'
|
|
server = connection.RedfishConnection(host, user_name, password) |