New network function in openbmctool_utils.py
New network function in openbmctool_utils.py

Created new network() function in openbmctool_utils.py:

Run an openbmctool.py network command and return the results as a
dictionary.

Description of argument(s):
sub_command                     The sub-command accepted by the network
                                command (e.g. "view-config", "getIP",
                                etc.).
options                         Any options accepted by the network
                                command.

Also, improved openbmctool_execute_command_json handling of
json.JSONDecodeError.

Change-Id: I2e014ea45fc70d86aa2dd757f614665afff75ad0
Signed-off-by: Michael Walsh <10404802c7de463f402c4a18638106ca1b12ef61@us.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation