OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

fixed minor errors reported by user Ashlesh. I did basic unit testing. #98

Closed therkong closed 4 years ago

therkong commented 4 years ago

• In file RestApi/Python/Modules/IxNetRestApiPortMgmt.py the following code uses 300 instead of timeout that is passed in argument list of function assignPorts: • response = self.ixnObj.waitForComplete(response, url + '/' + response.json()['id'], silentMode=False, timeout=300, ignoreException=True) • In file RestApi/Python/Modules/IxNetRestApi.py, == is used in the function init of class Connect: • if self.serverOs == 'windows': • self.logInfo('Connecting to API server: windows') • self.httpScheme = 'http' •
• if self.apiServerPort is None: • self.apiServerPort == 11009 • else: • self.apiServerPort == serverIpPort • In RestApi/Python/Modules/IxNetRestApi.py in function getAllOpenSessionIds, pprint and return should be removed: • from pprint import pprint • pprint(response.json()) • return