Basically this isn't going to end well. The 'raw' module is useful for sending to devices that look like Unix shells, but some things are too weird to work this way.
The right way to go with Cisco is going to be to get modules speaking to OnePK or NXOS APIs - similar to what has happened with Juniper or Arista. (things like Cumulus don't need them, because it's got a real SSH environment we can use like Linux). In any case, I don't want to go down the 'parse CLI' path for Cisco, and we're in touch with Cisco about modules for Ansible -- but it's been slow going. If this is something people would like to work on instead, I'd be quite interested. They should strive for something close to what the Juniper and Arista modules can do, I'd think. On Fri, Nov 14, 2014 at 3:59 PM, Thomas Quinot <[email protected]> wrote: > Redirecting from -devel as advised... > > On Thu, Nov 13, 2014 at 2:27 PM, Thomas Quinot <[email protected]> wrote: > > > I am considering managing some network equipment (switches) with the > > 'raw' module. This requires sending commands to the switch in an > > interactive session (command streamed before receiving the switch's > > prompt are ignored), performing successive 'wait for prompt/send > > command' steps [over a 'raw' ssh session]. Is there any existing support > > for such interactive processing (generalizing the circuitry providing > > optional stdin data)? If not, would there be interest in it? > > (I am willing to prototype this if that's of interest). > > > I guess this could apply to the 'raw', but also possibly 'shell' and > > 'command' modules. > > Thomas. > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/20141114205932.GB98767%40melamine.cuivre.fr.eu.org > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgy52zNLjk0RZh54TuPUAmEsmF5GUtoBDKLOhKNmcRTiVw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
