You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to run arbitrary show commands on junos and get the JSON or XML data back instead of stdout
It seems like junos.py isn't setup for handling "| display" and just drops it
Is that something you'd consider adding support for?
The way NX-OS SSH works I am able to do the above equivalent
(Place an x between the square brackets where applicable)
Yes
[] No
Setup
napalm version
(Paste verbatim output from pip freeze | grep napalm between quotes below)
napalm==3.3.1
Network operating system version
(Paste verbatim output from show version - or equivalent - between quotes below)
Junos: 20.2R3-S2.5
Steps to Reproduce the Issue
If I run "show lacp interfaces | display json" it doesn't honor the format request
>>> device.cli(['show lacp interfaces | display json'])
{'show lacp interfaces | display json': '\nAggregated interface: ae10\n LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity\n xe-1/2/0 Actor No No Yes Yes Yes Yes Fast Active\n xe-1/2/0 Partner No No Yes Yes Yes Yes Fast Active\n xe-1/2/1 Actor No No Yes Yes Yes Yes Fast Active\n xe-1/2/1 Partner No No Yes Yes Yes Yes Fast Active\n xe-0/2/0 Actor No No Yes Yes Yes Yes Fast Active\n xe-0/2/0 Partner No No Yes Yes Yes Yes Fast Active\n xe-0/2/1 Actor No No Yes Yes Yes Yes Fast Active\n xe-0/2/1 Partner No No Yes Yes Yes Yes Fast Active\n xe-2/2/0 Actor No No Yes Yes Yes Yes Fast Active\n xe-2/2/0 Partner No No Yes Yes Yes Yes Fast Active\n xe-2/2/1 Actor No No Yes Yes Yes Yes Fast Active\n xe-2/2/1 Partner No No Yes Yes Yes Yes Fast Active\n LACP protocol: Receive State Transmit State Mux State \n xe-1/2/0 Current Fast periodic Collecting distributing\n xe-1/2/1 Current Fast periodic Collecting distributing\n xe-0/2/0 Current Fast periodic Collecting distributing\n xe-0/2/1 Current Fast periodic Collecting distributing\n xe-2/2/0 Current Fast periodic Collecting distributing\n xe-2/2/1 Current Fast periodic Collecting distributing\n'}
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The text was updated successfully, but these errors were encountered:
Description of Issue/Question
I would like to be able to run arbitrary show commands on junos and get the JSON or XML data back instead of stdout
It seems like junos.py isn't setup for handling "| display" and just drops it
Is that something you'd consider adding support for?
The way NX-OS SSH works I am able to do the above equivalent
Note: Please check https://guides.github.com/features/mastering-markdown/
to see how to properly format your request.
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
If I run "show lacp interfaces | display json" it doesn't honor the format request
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The text was updated successfully, but these errors were encountered: