Lenovo cnos user module (#53763)

* Adding cnos_user module to Ansible

* Update cnos_user.py

* Adding Functional test cases and unit test cases.

* Fixing Bug found in testing with Lenovo Mars.

* Review comments incorporated

* Review comments implemented.

* Copy paste mistake
This commit is contained in:
Anil Kumar Muraleedharan 2019-03-27 19:22:05 +05:30 committed by Sumit Jaiswal
parent 0ab28f314a
commit 8d742d9bff
12 changed files with 684 additions and 2 deletions

View file

@ -50,6 +50,7 @@ from ansible.module_utils.connection import ConnectionError
_DEVICE_CONFIGS = {}
_CONNECTION = None
_VALID_USER_ROLES = ['network-admin', 'network-operator']
cnos_provider_spec = {
'host': dict(),
@ -88,6 +89,10 @@ def check_args(module, warnings):
pass
def get_user_roles():
return _VALID_USER_ROLES
def get_connection(module):
global _CONNECTION
if _CONNECTION: