Skip to content

Commit

Permalink
Revert deleted line
Browse files Browse the repository at this point in the history
Signed-off-by: maipbui <maibui@microsoft.com>
  • Loading branch information
maipbui committed Oct 6, 2022
1 parent bba06ff commit 92147d7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def is_host(self):
def load_json_file(self, path):
"""
Retrieves the json object from json file path
Returns:
A json object
"""
Expand All @@ -183,8 +184,10 @@ def load_json_file(self, path):
def get_config_path(self, config_name):
"""
Retrieves the path to platform api config directory
Args:
config_name: A string containing the name of config file.
Returns:
A string containing the path to json file
"""
Expand All @@ -193,10 +196,12 @@ def get_config_path(self, config_name):
def get_output(self, index, config, default):
"""
Retrieves the output for each function base on config
Args:
index: An integer containing the index of device.
config: A dict object containing the configuration of specified function.
default: A string containing the default output of specified function.
Returns:
A string containing the output of specified function in config
"""
Expand Down Expand Up @@ -246,10 +251,12 @@ def get_output(self, index, config, default):
def set_output(self, index, input, config):
"""
Sets the output of specified function on config
Args:
config: A dict object containing the configuration of specified function.
index: An integer containing the index of device.
input: A string containing the input of specified function.
Returns:
bool: True if set function is successfully, False if not
"""
Expand All @@ -271,6 +278,7 @@ def get_event(self, timeout, config, sfp_list):
"""
Returns a nested dictionary containing all devices which have
experienced a change at chassis level
"""
event_class = self._get_class(config)
return event_class(sfp_list).get_event(timeout)

0 comments on commit 92147d7

Please sign in to comment.