{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/49807","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/49807/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/49807/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/49807/events","html_url":"https://github.com/ansible/ansible/pull/49807","id":390100760,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3OTM5NTUx","number":49807,"title":"New module lxca_switches for Lenovo XClarity Administrator","user":{"login":"navalkp","id":35801101,"node_id":"MDQ6VXNlcjM1ODAxMTAx","avatar_url":"https://avatars0.githubusercontent.com/u/35801101?v=4","gravatar_id":"","url":"https://api.github.com/users/navalkp","html_url":"https://github.com/navalkp","followers_url":"https://api.github.com/users/navalkp/followers","following_url":"https://api.github.com/users/navalkp/following{/other_user}","gists_url":"https://api.github.com/users/navalkp/gists{/gist_id}","starred_url":"https://api.github.com/users/navalkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navalkp/subscriptions","organizations_url":"https://api.github.com/users/navalkp/orgs","repos_url":"https://api.github.com/users/navalkp/repos","events_url":"https://api.github.com/users/navalkp/events{/privacy}","received_events_url":"https://api.github.com/users/navalkp/received_events","type":"User","site_admin":false},"labels":[{"id":1043397454,"node_id":"MDU6TGFiZWwxMDQzMzk3NDU0","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.8","name":"affects_2.8","color":"ededed","default":false},{"id":513652538,"node_id":"MDU6TGFiZWw1MTM2NTI1Mzg=","url":"https://api.github.com/repos/ansible/ansible/labels/core_review","name":"core_review","color":"ededed","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":503572087,"node_id":"MDU6TGFiZWw1MDM1NzIwODc=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":473225334,"node_id":"MDU6TGFiZWw0NzMyMjUzMzQ=","url":"https://api.github.com/repos/ansible/ansible/labels/new_module","name":"new_module","color":"c2e0c6","default":false},{"id":153577825,"node_id":"MDU6TGFiZWwxNTM1Nzc4MjU=","url":"https://api.github.com/repos/ansible/ansible/labels/new_plugin","name":"new_plugin","color":"bfe5bf","default":false},{"id":1136485352,"node_id":"MDU6TGFiZWwxMTM2NDg1MzUy","url":"https://api.github.com/repos/ansible/ansible/labels/remote_management","name":"remote_management","color":"c5def5","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-12T07:40:13Z","updated_at":"2018-12-12T08:30:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/49807","html_url":"https://github.com/ansible/ansible/pull/49807","diff_url":"https://github.com/ansible/ansible/pull/49807.diff","patch_url":"https://github.com/ansible/ansible/pull/49807.patch"},"body":"##### SUMMARY\r\n<!--- Describe the change below, including rationale and design decisions -->\r\nThis module provide an interface to Lenovo XClarity Administrator. This module provides information about switches and allow to enable/disable switch ports\r\n<!--- HINT: Include \"Fixes #nnn\" if you are fixing an existing issue -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n- New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\nlxca_switches\r\n##### ADDITIONAL INFORMATION\r\n<!--- Include additional information to help people understand the change here -->\r\n<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->\r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```paste below\r\nTesting ansible module lxca_switches\r\n\r\n1. list all switches\r\n2. list switch with uuid\r\n3. list switch with chassis uuid\r\n4. list ports of switch with uuid\r\n\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ cat all_switches.yml \r\n---\r\n- hosts: localhost\r\n  connection: local\r\n  tasks:\r\n    - name: list switches\r\n      lxca_switches:\r\n        login_user: USERID\r\n        login_password: CME44ibm\r\n        auth_url: \"https://10.243.9.238\"\r\n        command_options: switches\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ ansible-playbook all_switches.yml\r\n [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'\r\n\r\n\r\nPLAY [localhost] *****************************************************************************************************************************\r\n\r\nTASK [Gathering Facts] ***********************************************************************************************************************\r\nok: [localhost]\r\n\r\nTASK [list switches] *************************************************************************************************************************\r\nok: [localhost]\r\n\r\nPLAY RECAP ***********************************************************************************************************************************\r\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0   \r\n\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ cat filter_by_uuid.yml \r\n---\r\n- hosts: localhost\r\n  connection: local\r\n  tasks:\r\n    - name: list nodes\r\n      lxca_switches:\r\n        login_user: USERID\r\n        login_password: CME44ibm\r\n        auth_url: \"https://10.243.9.238\"\r\n        uuid: \"4E28668DD4DCADD56CDB00C0DD1F1E51\"\r\n        command_options: switches_by_uuid\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ \r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ ansible-playbook filter_by_uuid.yml \r\n [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'\r\n\r\n\r\nPLAY [localhost] *****************************************************************************************************************************\r\n\r\nTASK [Gathering Facts] ***********************************************************************************************************************\r\nok: [localhost]\r\n\r\nTASK [list nodes] ****************************************************************************************************************************\r\nok: [localhost]\r\n\r\nPLAY RECAP ***********************************************************************************************************************************\r\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0   \r\n\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ cat filter_by_chassis_uuid.yml \r\n---\r\n- hosts: localhost\r\n  connection: local\r\n  tasks:\r\n    - name: list switches\r\n      lxca_switches:\r\n        login_user: USERID\r\n        login_password: CME44ibm\r\n        auth_url: \"https://10.243.9.238\"\r\n        chassis: \"9FFE022D2E2E11E1BD0EA8A7A12531B6\"\r\n        command_options: switches_by_chassis_uuid\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ ansible-playbook filter_by_chassis_uuid.yml \r\n [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'\r\n\r\n\r\nPLAY [localhost] *****************************************************************************************************************************\r\n\r\nTASK [Gathering Facts] ***********************************************************************************************************************\r\nok: [localhost]\r\n\r\nTASK [list switches] *************************************************************************************************************************\r\nok: [localhost]\r\n\r\nPLAY RECAP ***********************************************************************************************************************************\r\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0   \r\n\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ cat list_switch_ports.yml \r\n---\r\n- hosts: localhost\r\n  connection: local\r\n  tasks:\r\n    - name: list switches ports\r\n      lxca_switches:\r\n        login_user: USERID\r\n        login_password: CME44ibm\r\n        auth_url: \"https://10.243.9.238\"\r\n        uuid: \"4E28668DD4DCADD56CDB00C0DD1F1E51\"\r\n        command_options: switches_list_ports\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$ ansible-playbook list_switch_ports.yml \r\n [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'\r\n\r\n\r\nPLAY [localhost] *****************************************************************************************************************************\r\n\r\nTASK [Gathering Facts] ***********************************************************************************************************************\r\nok: [localhost]\r\n\r\nTASK [list switches ports] *******************************************************************************************************************\r\nok: [localhost]\r\n\r\nPLAY RECAP ***********************************************************************************************************************************\r\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0   \r\n\r\n(pylxca27) naval@osboxes:~/play/playbook/lxca_switches$\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/446503718","html_url":"https://github.com/ansible/ansible/pull/49807#issuecomment-446503718","issue_url":"https://api.github.com/repos/ansible/ansible/issues/49807","id":446503718,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjUwMzcxOA==","user":{"login":"navalkp","id":35801101,"node_id":"MDQ6VXNlcjM1ODAxMTAx","avatar_url":"https://avatars0.githubusercontent.com/u/35801101?v=4","gravatar_id":"","url":"https://api.github.com/users/navalkp","html_url":"https://github.com/navalkp","followers_url":"https://api.github.com/users/navalkp/followers","following_url":"https://api.github.com/users/navalkp/following{/other_user}","gists_url":"https://api.github.com/users/navalkp/gists{/gist_id}","starred_url":"https://api.github.com/users/navalkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navalkp/subscriptions","organizations_url":"https://api.github.com/users/navalkp/orgs","repos_url":"https://api.github.com/users/navalkp/repos","events_url":"https://api.github.com/users/navalkp/events{/privacy}","received_events_url":"https://api.github.com/users/navalkp/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T08:30:27Z","updated_at":"2018-12-12T08:30:27Z","author_association":"CONTRIBUTOR","body":"bot_status\r\n"}}
{"actor":{"display_login":"navalkp"}}