New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config Template Load Fails on SRX1400 #172
Comments
This issue does not occur on an SRX550 running 12.1X44-D20.3:
|
Thanks for the report @tyler-c I'll dig into this. |
Disregard the error with finding the chassis inventory description. It appears you need to be absolutely specific about the path and can't search through the tree without specifying parent nodes:
The config load is still failing, though. |
More testing: When loading the same template to an SRX550, the commit is successful but the method throws an error:
However, the configuration was actually committed:
This makes it a bit more difficult to catch the failure and perform appropriate action, since you can't do a simple rollback (to zero) and need to actually specify a revision to rollback to (1). |
@tyler-c - you write:
I actually thought the same given my background using XML with Ruby ;-) Try prefixing your XPath expression with "./" so "chassis/description" becomes "./chassis/description". This technique works for me so I do not need to be absolutely specific. Hope this helps. |
@tyler-c - just a helpful bit:
can be
|
@tyler-c - regarding you exception around the cu.commit(), could you please add a try/except block and dump the error:
When the debugger (pdb) hits, you can just inspect the err variable and it will give you the XML response from Junos. This might show you what the cause it - please do include this in the next comment on this issue. Thank you! |
@tyler-c - I just submitted some code to master that has better Exception handling. Could you please retrieve that code and re-try your tests? Alternatively, if you can allow me remote access to your device I could try to resolve this directly. Thank you! |
Sorry for lack of testing--been a bit busy. I'll have to clone the repo and use that (currently using Thanks. |
@tyler-c - Just checking in. Hope all is going well. Do you happen to have an update on this issue? |
@tyler-c - I'd like to close this issue if it is no longer persistent. Please advise, or I'll close in a few days. Thank you! |
will close this on 5/16 if no further activity reported. |
closing due to inactivity. can re-open at a later time. |
SRX1400 running 12.1X44-D25.5 is failing to load a template that other devices (EX4200s running various 10.x and 11.x releases) load without issue. The session is opened without any problems. I can also send RPC calls, such as get_chassis_inventory, although they seem to have issues.
Error message:
The text was updated successfully, but these errors were encountered: