{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/42311","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/42311/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/42311/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/42311/events","html_url":"https://github.com/ansible/ansible/issues/42311","id":338298984,"node_id":"MDU6SXNzdWUzMzgyOTg5ODQ=","number":42311,"title":"nxos_interface mode parameter not idempotent for port-channels","user":{"login":"dmurarasu","id":11095445,"node_id":"MDQ6VXNlcjExMDk1NDQ1","avatar_url":"https://avatars1.githubusercontent.com/u/11095445?v=4","gravatar_id":"","url":"https://api.github.com/users/dmurarasu","html_url":"https://github.com/dmurarasu","followers_url":"https://api.github.com/users/dmurarasu/followers","following_url":"https://api.github.com/users/dmurarasu/following{/other_user}","gists_url":"https://api.github.com/users/dmurarasu/gists{/gist_id}","starred_url":"https://api.github.com/users/dmurarasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmurarasu/subscriptions","organizations_url":"https://api.github.com/users/dmurarasu/orgs","repos_url":"https://api.github.com/users/dmurarasu/repos","events_url":"https://api.github.com/users/dmurarasu/events{/privacy}","received_events_url":"https://api.github.com/users/dmurarasu/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":339653091,"node_id":"MDU6TGFiZWwzMzk2NTMwOTE=","url":"https://api.github.com/repos/ansible/ansible/labels/networking","name":"networking","color":"c7def8","default":false},{"id":731809659,"node_id":"MDU6TGFiZWw3MzE4MDk2NTk=","url":"https://api.github.com/repos/ansible/ansible/labels/nxos","name":"nxos","color":"c7def8","default":false},{"id":383076471,"node_id":"MDU6TGFiZWwzODMwNzY0NzE=","url":"https://api.github.com/repos/ansible/ansible/labels/python3","name":"python3","color":"fbca04","default":false},{"id":669761792,"node_id":"MDU6TGFiZWw2Njk3NjE3OTI=","url":"https://api.github.com/repos/ansible/ansible/labels/support:network","name":"support:network","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"trishnaguha","id":13337039,"node_id":"MDQ6VXNlcjEzMzM3MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/13337039?v=4","gravatar_id":"","url":"https://api.github.com/users/trishnaguha","html_url":"https://github.com/trishnaguha","followers_url":"https://api.github.com/users/trishnaguha/followers","following_url":"https://api.github.com/users/trishnaguha/following{/other_user}","gists_url":"https://api.github.com/users/trishnaguha/gists{/gist_id}","starred_url":"https://api.github.com/users/trishnaguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishnaguha/subscriptions","organizations_url":"https://api.github.com/users/trishnaguha/orgs","repos_url":"https://api.github.com/users/trishnaguha/repos","events_url":"https://api.github.com/users/trishnaguha/events{/privacy}","received_events_url":"https://api.github.com/users/trishnaguha/received_events","type":"User","site_admin":false},"assignees":[{"login":"trishnaguha","id":13337039,"node_id":"MDQ6VXNlcjEzMzM3MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/13337039?v=4","gravatar_id":"","url":"https://api.github.com/users/trishnaguha","html_url":"https://github.com/trishnaguha","followers_url":"https://api.github.com/users/trishnaguha/followers","following_url":"https://api.github.com/users/trishnaguha/following{/other_user}","gists_url":"https://api.github.com/users/trishnaguha/gists{/gist_id}","starred_url":"https://api.github.com/users/trishnaguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishnaguha/subscriptions","organizations_url":"https://api.github.com/users/trishnaguha/orgs","repos_url":"https://api.github.com/users/trishnaguha/repos","events_url":"https://api.github.com/users/trishnaguha/events{/privacy}","received_events_url":"https://api.github.com/users/trishnaguha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-07-04T14:33:22Z","updated_at":"2018-08-16T06:46:05Z","closed_at":"2018-08-16T06:46:05Z","author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\r\n\r\n##### SUMMARY\r\nWhen using nxos_interface if you specify the \"mode\" parameter this returns changed every time and tries to adds \"switchport\" command (when mode layer2) or \"no switchport\" command(when mode layer3) on port-channel interfaces even if this has been already configured. \r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\nnxos_interface\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.7.0.dev0\r\nansible python module location = /usr/lib/python3.6/site-packages/ansible\r\nexecutable location = /usr/bin/ansible\r\npython version = 3.6.5 (default, Apr 10 2018, 17:08:37) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nAnsible Server: CentOS Linux release 7.5.1804\r\nDevice: N9K running NXOS: version 7.0(3)I6(1)\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n---\r\n- hosts: dcs\r\n  name: Configure switches\r\n  connection: network_cli\r\n  tasks:\r\n    - nxos_interface:\r\n        mode: layer2\r\n        name: port-channel1\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nansible-playbook -i hosts_bkup test.yaml -v\r\n\r\nPLAY [Configure switches] ********************************************************************************************************\r\n\r\nTASK [nxos_interface] ************************************************************************************************************\r\nok: [nexus01] => {\"changed\": false, \"commands\": []}\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n ansible-playbook -i hosts_bkup test.yaml -v\r\n\r\nPLAY [Configure switches] ********************************************************************************************************\r\n\r\nTASK [nxos_interface] ************************************************************************************************************\r\nchanged: [nexus01] => {\"changed\": true, \"commands\": [\"interface port-channel1\", \"switchport\"]}\r\n\r\nPLAY RECAP ***********************************************************************************************************************\r\nnexus01                    : ok=1    changed=1    unreachable=0    failed=0\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"}}
{"actor":{"display_login":"trishnaguha"}}