Skip to content

Commit

Permalink
Update BMC restful api for phalanx device
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Dec 4, 2018
1 parent e24ffdd commit 6e98838
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class FanUtil():

def __init__(self):

self.fan_fru_url = "http://[fe80::1:1%eth0.4088]:8080/api/sys/fruid/fan"
self.sensor_url = "http://[fe80::1:1%eth0.4088]:8080/api/sys/sensors"
self.fan_fru_url = "http://240.1.1.1:8080/api/sys/fruid/fan"
self.sensor_url = "http://240.1.1.1:8080/api/sys/sensors"
self.fru_data_list = None
self.sensor_data_list = None

Expand Down Expand Up @@ -39,7 +39,7 @@ def get_num_fans(self):
Get the number of fans
:return: int num_fans
"""
num_fans = 8
num_fans = 10

return num_fans

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class PsuUtil(PsuBase):

def __init__(self):
PsuBase.__init__(self)
self.fru_status_url = "http://[fe80::1:1%eth0.4088]:8080/api/sys/fruid/status"
self.psu_info_url = "http://[fe80::1:1%eth0.4088]:8080/api/sys/fruid/psu"
self.fru_status_url = "http://240.1.1.1:8080/api/sys/fruid/status"
self.psu_info_url = "http://240.1.1.1:8080/api/sys/fruid/psu"

self.fru_status_list = None
self.psu_info_list = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SensorUtil():
"""Platform-specific SensorUtil class"""

def __init__(self):
self.sensor_url = "http://[fe80::1:1%eth0.4088]:8080/api/sys/sensors"
self.sensor_url = "http://240.1.1.1:8080/api/sys/sensors"
self.sensor_info_list = None

def request_data(self):
Expand Down
2 changes: 1 addition & 1 deletion platform/broadcom/sonic-platform-modules-cel

0 comments on commit 6e98838

Please sign in to comment.