'ssl_crt_path': self.listener_cert_path,
'ssl_key_path': self.listener_key_path
}
+ if result_json['result'].get('port'):
+ kwargs['port'] = result_json['result']['port']
self.t_node_proxy = NodeProxy(**kwargs)
self.t_node_proxy.start()
self.chassis_endpoint: str = kw.get('chassis_endpoint', '/Chassis/System.Embedded.1')
self.log = Logger(__name__)
self.host: str = kw['host']
+ self.port: int = kw['port']
self.username: str = kw['username']
self.password: str = kw['password']
# move the following line (class attribute?)
- self.client = RedFishClient(host=self.host, username=self.username, password=self.password)
+ self.client = RedFishClient(host=self.host, port=self.port, username=self.username, password=self.password)
self.log.logger.info(f"redfish system initialization, host: {self.host}, user: {self.username}")
self.run: bool = False
self.log.logger.info(f"Server initialization...")
try:
self.system = RedfishDellSystem(host=self.__dict__['host'],
+ port=self.__dict__.get('port', 443),
username=self.__dict__['username'],
password=self.__dict__['password'],
config=self.config)