Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exos vlan #54500

wants to merge 3 commits into
base: devel


None yet
3 participants
Copy link

ujwalkomarla commented Mar 28, 2019


Add exos_vlan module with basic unit tests.

  • New Module Pull Request



exos_vlan module will be only through httpapi(RESTCONF) connection.
Tested against standalone x460-g2, two-node stack of x460-g2 Stack, and an EXOS VM.


RESTCONF is supported with EXOS v22.1 and later releases.
RESTCONF is packaged into EXOS starting with v22.4.
Releases can be found at

ansible 2.8.0.dev0
  config file = /Users/ukomarla/.ansible.cfg
  configured module search path = ['/Users/ukomarla/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/ukomarla/ansible/lib/ansible
  executable location = /Users/ukomarla/ansible/bin/ansible
  python version = 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43) [Clang 6.0 (clang-600.0.57)]

This comment has been minimized.


This comment has been minimized.

Copy link

ansibot commented Mar 28, 2019

@ujwalkomarla, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see

click here for bot help


This comment has been minimized.

Copy link
Contributor Author

ujwalkomarla commented Apr 2, 2019

Hi @Qalthos ,
Can you take a look at this PR for exos_vlan module, which is based on EXOS restconf and give inputs on how to take it forward?

You had mentioned that, since this is based on 'restconf' I should utilize restconf module_utils.
I took a look at 'restconf' module_utils, but there is little I'll gain from using them.

Going forward, for exos_* modules, I would like to use RESTCONF where ever possible and fall back to JSONRPC when needed, as EXOS restconf is a Work-In-Progress.
Given that, I implemented two interfaces in ‘httpapi’ plugin:

  • ‘run_commands’ deals with EXOS-JSONRPC interaction and quite similar to network-cli ‘run_commands’, except output is by default ‘JSON’.
  • ‘send_request’ deals with EXOS-RESTCONF interaction.

This comment has been minimized.

Copy link
Contributor Author

ujwalkomarla commented Apr 3, 2019

@Qalthos A quick modification to exos_vlan to utilize restconf module_utils - get() and edit_config(), looks like this:

Is this in the direction of what you wanted?

@ansibot ansibot added the stale_ci label Apr 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.