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
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
you need XML header, yet you specifically repeatedly call #root to get rid of it
you treat hello as special case, instead of as part call utilising normal infrastructure, so it's missing MSG_END
Simple:
Netconf::SSH.new(login) do |nc|
cfgall = nc.rpc.get_config
puts cfgall
end
Won't work against latest IOS-XE (16.4.1), due to above errors.
On more larger infrastructure/design view:
you should not call Nokogiri over once, you should wrap it on you own decorator so you can fix your code in single place
you should not rely #send_and_receive to append the MSG_END this should be added by send function only, so commands which do not expect/want to receive data are still correctly appended by MSG_END
all and all, it is seems POC/unmaintained/not_idiomatic, would be grand if Juniper would invest some time on money on it, I'm sure customer would enjoy it.
I do not propose fixing the 1/2, I propose redesign/refactor.
#rootto get rid of itMSG_ENDSimple:
Won't work against latest IOS-XE (16.4.1), due to above errors.
On more larger infrastructure/design view:
#send_and_receiveto append theMSG_ENDthis should be added by send function only, so commands which do not expect/want to receive data are still correctly appended byMSG_ENDI do not propose fixing the 1/2, I propose redesign/refactor.
Thanks!