napalm-ros
napalm-ros copied to clipboard
napalm_ros.query error
After updating the module, I get an error related to napalm_ros.query . But I can't find the napalm_ros.query module.
`` (venv) [root@Inventory netbox]# napalm --user admin --vendor napalm_ros 91.1.1.1 call get_config Enter password: 2022-07-25 19:09:10,286 - napalm - ERROR - get_network_driver - Failed: No module named 'napalm_ros.query'
================= Traceback =================
Traceback (most recent call last):
File "/opt/netbox/venv/bin/napalm", line 8, in
Module is here.
Provide information about:
- napalm version
- napalm-ros version
- librouteros version
USE issue report template. It's is for a good reason.
Thank you. I'm sorry. Added information below.
napalm version - 4.0.0 napalm-ros - 1.0.1 librouteros - 3.2.1
napalm --user admin --vendor napalm_ros 91.1.1.1 call get_config
Now I'm getting another error
{ "running": "expected end of command (line 1 column 14)\n", "candidate": "expected end of command (line 1 column 14)\n", "startup": "expected end of command (line 1 column 14)\n" }
napalm-ros
with get_config()
isn't released yet so how did you execute get_config
?
I copied all your changes to get_config. I thought it would work. If you have information - please write when the new version will be released.
It's released.
after update to 1.1.0 i see an erorr
Enter password: { "running": "expected end of command (line 1 column 14)\n", "candidate": "expected end of command (line 1 column 14)\n", "startup": "expected end of command (line 1 column 14)\n" }
Which version of routeros are you running on destination host ?
6.48.5
Does /export terse
work for you in regular ssh session ?
Yes. Works.
Hmm. Try to modify https://github.com/napalm-automation-community/napalm-ros/blob/master/napalm_ros/ros.py#L372 and set
command = "/export terse"
note /
did not help
Enter password:
{
"running": "expected end of command (line 1 column 15)\n",
"candidate": "expected end of command (line 1 column 15)\n",
"startup": "expected end of command (line 1 column 15)\n"
}
Hmm Then I don't know what's the problem. 🤷
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.