ExtremeSwitching (EXOS)

 View Only
Expand all | Collapse all

Ansible for XOS


PARTHIBAN CHINNAYA02-04-2015 04:58


andreas07-24-2015 18:05


andreas09-13-2015 08:18


andreas04-28-2016 11:20

Tasos Vlachogiannis

Tasos Vlachogiannis12-14-2016 05:54

Johannes Denninger

Johannes Denninger09-25-2017 07:14

  • 1.  Ansible for XOS

    Posted 02-02-2015 16:13
    Have anyone done any playbook work with ansible for Extreme networks ? Is there anything done in the ansible-galaxy part or anything done internally at Extreme ?

  • 2.  RE: Ansible for XOS

    Posted 02-04-2015 04:50
    I use Ansible for servers configuration sometimes. But is it possible to use Ansible for XOS?

    I know Ansible pushes a python script to node, but there is no python interpreter on the Extreme switches.

    It would be great if someone corrected me.

  • 3.  RE: Ansible for XOS

    Posted 02-04-2015 04:58
    I was told in 15.6 python shell is open

  • 4.  RE: Ansible for XOS

    Posted 02-04-2015 04:58
    Sorry, but do you get some information about it?

  • 5.  RE: Ansible for XOS

    Posted 02-04-2015 04:58
    Python 2.7 is part of EXOS since 15.6. You can script and interact with EXOS (send EXOS cmd and capture the result, in text, xml or both), create sockets, and all the good thing Python can do with the standard library.

    And there's more to come in the short term (15.7).

  • 6.  RE: Ansible for XOS

    Posted 02-04-2015 04:58
    Thanks! I should upgrade my switches)

  • 7.  RE: Ansible for XOS

    Posted 02-04-2015 04:58
    Stay tuned, we are working on Ansible support in EXOS.

  • 8.  RE: Ansible for XOS

    Posted 07-24-2015 18:05
    Still no framework from extreme ?

  • 9.  RE: Ansible for XOS

    Posted 08-07-2015 19:47
    Ansible is designed to run python modules on the managed device and return JSON results.

    I have a question for the community about an Ansible implementation.

    If there were an Ansible EXOS module that pushed EXOS CLI commands from a playbook to a switch, and the switch returned JSON data, would that work for the Ansible users?

    Playbook example: (I may not have this just right)

    hosts: exosswitches


    portno: ""


    -name collect port statistics

    exos: show ports {{ portno }} statistics no-refresh

    The data returned from an EXOS device for portno=1 would look like:


    "show_ports_stats": {
    "dot1dTpPortInDiscards": 0,
    "dot1dTpPortInFrames": 616,
    "dot1dTpPortMaxInfo": 1500,
    "dot1dTpPortOutFrames": 626,
    "linkState": 1,
    "port": 1,
    "portList": 1,
    "portNoSnmp": 1,
    "rxBcast": 0,
    "rxByteCnt": 110071,
    "rxMcast": 305,
    "rxPktCnt": 616,
    "txBcast": 0,
    "txByteCnt": 112932,
    "txMcast": 303,
    "txPktCnt": 626
    "status": "SUCCESS"

  • 10.  RE: Ansible for XOS

    Posted 08-10-2015 03:48
    Hi !
    First of all thank you for sharing and asking.

    From my perspective I would like to have the answer back in Json format. That would be very useful and easy to parse out.

    // Andreas

  • 11.  RE: Ansible for XOS

    Posted 09-13-2015 08:18
    Any update here ?

  • 12.  RE: Ansible for XOS

    Posted 04-28-2016 11:20
    Any update ?

  • 13.  RE: Ansible for XOS

    Posted 04-28-2016 11:26

    With EXOS 21.1, there're several enhancements that open doors to Ansible. There's a MMI, using JSONRPC with different methods: CLI or Python. So that's, imho, the foundation for using Ansible here.


    However, there's no module nor playbook, and it may require some effort yet to have it running smoothly.

  • 14.  RE: Ansible for XOS

    Posted 05-03-2016 21:13
    You can also use ansible modules from the managing host with delegate_to. I think many of the modules for setting up vms on aws, configure bigip loadbalancers and a few others.

  • 15.  RE: Ansible for XOS

    Posted 12-13-2016 19:50
    Hello, came here looking for anyone using Ansible to push firmware updates to XOS devices, and it looks like it's still in process, and more of a 21.1 thing. Since the last post is seven months old, I'm wondering if any progress has been made on this. I would just like to easily push firmware updates to all our Summit switches, without having to login to each one and TFTP/SCP the XOS firmware and SSH mod.

  • 16.  RE: Ansible for XOS

    Posted 12-14-2016 05:54

    For the moment, there's no official support for Ansible.

    Would you be interested in a separate "tool" that could manage your EXOS switches in a similar way, but not exactly like Ansible? The tool would NOT be an official extreme tool, but rather a home-made one. Testing not really done, this is really "home-made".

    That tool would also require 21.1 or later.

  • 17.  RE: Ansible for XOS

    Posted 12-14-2016 05:54
    Do you have any updates on that tool?

  • 18.  RE: Ansible for XOS

    Posted 09-25-2017 07:14
    any news on that topic?

  • 19.  RE: Ansible for XOS

    Posted 01-18-2018 19:26

    Current EXOS is not support Ansible.

    On another way, we offer JSONRPC which could collect the datat from an EXOS switch in machine readable JSON format.

    Best regards,

  • 20.  RE: Ansible for XOS

    Posted 03-09-2018 12:25
    Are there some new steps for EXOS support regarding ansible ?

    GitHub now present this topic - but without any content:

  • 21.  RE: Ansible for XOS

    Posted 03-09-2018 17:59
    Nothing new on EXOS (yet). We've just created that repo to have a place to put docs and example playbooks for using the new SLX modules that we're working on here https://github.com/StackStorm/ansible/tree/slxos_modules

    I would love to also have EXOS modules in future, but nothing committed yet.

    Of course, if others want to get started with writing Ansible modules, that would be great. They are all Open Source, and it's not that hard to get started with writing your own. See https://github.com/ansible/ansible/tree/devel/lib/ansible/modules/network for all the other examples.

    Modules don't have to be written by the vendor themselves. Anyone can write them. You can see that a user has written modules for MLXe (Ironware). These are in the 2.5 release, which is in final RC stage right now, and will probably go GA next week.

  • 22.  RE: Ansible for XOS

    Posted 04-11-2018 21:28
    SLX Ansible modules are now getting merged into Ansible core. See https://github.com/ansible/ansible/pull/38235 and https://github.com/ansible/ansible/pull/38607

    Another user has started EXOS modules - the first one might get merged soon https://github.com/ansible/ansible/pull/37775

  • 23.  RE: Ansible for XOS

    Posted 04-11-2018 21:28
    FYI: exos_command and SLX-related modules are in Ansible 2.6, which has just been released as GA.

  • 24.  RE: Ansible for XOS

    Posted 08-15-2018 16:02
    exos_facts has been merged into Ansible 2.7-dev0. You can use this by running the 'devel' version of Ansible. See https://github.com/ansible/ansible/pull/43210

    exos_config has been submitted to Ansible. https://github.com/ansible/ansible/pull/43902 This should also make it into Ansible 2.7 GA, but you can of course use it now.