Skip to content

Commit

Permalink
Rename function according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolam committed Nov 8, 2024
1 parent 8a22443 commit e17b7e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sonic_platform_base/module_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def get_state_info(self):
"""
raise NotImplementedError

def get_bus_info(self):
def get_pci_bus_info(self):
"""
Retrieves the bus information.
Expand All @@ -284,7 +284,7 @@ def pci_detach(self):
"""
raise NotImplementedError

def pci_reattach(self):
def pci_rescan(self):
"""
Rescans and reconnects the PCI device.
Expand Down
4 changes: 2 additions & 2 deletions tests/module_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def test_module_base(self):
[module.get_dpu_id],
[module.get_reboot_cause],
[module.get_state_info],
[module.get_bus_info],
[module.get_pci_bus_info],
[module.pci_detach],
[module.pci_reattach],
[module.pci_rescan],
]

for method in not_implemented_methods:
Expand Down

0 comments on commit e17b7e4

Please sign in to comment.