{"id":23907,"library":"ixnetwork","title":"IxNetwork Low Level API","description":"IxNetwork Low Level API provides a Python interface to control and automate Ixia's IxNetwork test platform. Version 9.30.2212.8 is the latest, with irregular releases tied to appliance firmware. Supports HTTP/REST and WebSocket connections to IxNetwork servers for traffic generation, protocol emulation, and chassis management.","status":"active","version":"9.30.2212.8","language":"python","source_language":"en","source_url":"https://github.com/ixiacom/ixnetwork-api-py","tags":["network-testing","ixia","automation","rest-api"],"install":[{"cmd":"pip install ixnetwork","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Always import from `ixnetwork` top-level package.","symbol":"IxNetwork","correct":"from ixnetwork import IxNetwork"},{"note":"Exception classes are in the main namespace.","symbol":"IxNetError","correct":"from ixnetwork import IxNetError"}],"quickstart":{"code":"from ixnetwork import IxNetwork\n\nixNet = IxNetwork()\nixNet.connect('10.0.0.1', username='admin', password='admin', apiKey=os.environ.get('IXN_API_KEY', ''))\nprint(ixNet.getSessionIds())","lang":"python","description":"Basic connection to an IxNetwork server. Requires ip/hostname, credentials. The `connect` call is synchronous and returns session IDs."},"warnings":[{"fix":"Upgrade to Python 3.6+ and ensure server TLS 1.2 is enabled.","message":"Version 9.30+ removed support for Python 2.7 and older TLS protocols. Ensure your environment uses Python 3.6+ and the server TLS 1.2+.","severity":"breaking","affected_versions":">=9.30"},{"fix":"Always pass `apiKey` parameter (e.g., `apiKey=''` if not used).","message":"The `connect` method changed default `apiKey` parameter from optional to required in some versions. If not using API key, pass empty string.","severity":"breaking","affected_versions":">=9.30"},{"fix":"Use `ixNet.disconnect()` in a finally block or context manager pattern.","message":"Session management is manual: you must call `ixNet.disconnect()` to release server resources. Not doing so leads to stale sessions and resource leaks.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install ixnetwork` in the correct Python environment.","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'ixnetwork'"},{"fix":"Verify server address, port (default 443), network connectivity, and credentials.","cause":"Server IP/port unreachable, firewall blocking, or incorrect credentials.","error":"IxNetError: Connection refused or timeout"},{"fix":"Use exact import: `from ixnetwork import IxNetwork`. Upgrade package: `pip install --upgrade ixnetwork`.","cause":"Import statement is incorrect or the package version is too old.","error":"AttributeError: module 'ixnetwork' has no attribute 'IxNetwork'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}