Receiving Python API Errors
Take these actions if any of the following Python API errors appear:
Symptom | Solution | Example |
---|---|---|
The Python cli API throws a NameError. |
Import the cli module into the global namespace. |
|
The Python clid API throws a structured_output_not_supported_error. |
Use the cli or clip API. The clid API works only with commands that support structured data output. |
|
The cli API and cisco objects throw a Permission denied error. |
Make sure your login ID has sufficient permissions to access the command or resource. If necessary, ask your network administrator for additional permissions. |
|
The urllib2 or socket connection is not processed. |
Make sure you are using the correct virtual routing context. If not, switch to the correct one. |
|