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

Draft
wants to merge 3 commits into
base: devel
from

Conversation

Projects
None yet
3 participants
@ujwalkomarla
Copy link
Contributor

ujwalkomarla commented Mar 28, 2019

SUMMARY

Add exos_vlan module with basic unit tests.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

exos_vlan

ADDITIONAL INFORMATION

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 LIMITATION

RESTCONF is supported with EXOS v22.1 and later releases.
RESTCONF is packaged into EXOS starting with v22.4.
Releases can be found at https://github.com/extremenetworks/EXOS_Apps/tree/master/REST/downloads

ANSIBLE VERSION
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)]
@ansibot

This comment has been minimized.

@ansibot

This comment has been minimized.

Copy link
Contributor

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 https://github.com/ansible/community

click here for bot help

@ujwalkomarla

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.
@ujwalkomarla

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:

https://github.com/ruturajvy/ansible/tree/EXOS_VLAN
ujwalkomarla/ansible@EXOS_VLAN...ruturajvy:EXOS_VLAN

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.