net_command on junos will fail if connecting as root #20131

Open
gundalow opened this Issue Jan 11, 2017 · 1 comment

Projects

None yet

2 participants

@gundalow
Contributor
ISSUE TYPE
  • Bug Report
COMPONENT NAME

net_command

ANSIBLE VERSION
ansible 2.3.0 (devel 8fe09d4ea9) last updated 2017/01/11 08:23:39 (GMT +100)
  config file = 
  configured module search path = Default w/o overrides

SUMMARY

Junos devices have a root user that doesn't go straight into the cli shell

Initially this causes the detection code in plugins/terminal/junos.py to gracefully fail as show version returns an error.

root@ec2-54-204-196-139% show version
show: Command not found.
root@ec2-54-204-196-139% cli
show root@ec2-54-204-196-139> show version 
Hostname: ec2-54-204-196-139
Model: vsrx
Junos: 15.1X49-D60.7
JUNOS Software Release [15.1X49-D60.7]
STEPS TO REPRODUCE

Connect as root

EXPECTED RESULTS
ACTUAL RESULTS

@ansibot ansibot added the module label Jan 11, 2017
@gundalow
Contributor

Once fixed enable Junos targets/net_command in Shippable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment