{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/42569","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/42569/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/42569/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/42569/events","html_url":"https://github.com/ansible/ansible/issues/42569","id":339814235,"node_id":"MDU6SXNzdWUzMzk4MTQyMzU=","number":42569,"title":"nmcli module always sets hairpin mode to 1 for bridge slaves.","user":{"login":"tripledes","id":1364019,"node_id":"MDQ6VXNlcjEzNjQwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1364019?v=4","gravatar_id":"","url":"https://api.github.com/users/tripledes","html_url":"https://github.com/tripledes","followers_url":"https://api.github.com/users/tripledes/followers","following_url":"https://api.github.com/users/tripledes/following{/other_user}","gists_url":"https://api.github.com/users/tripledes/gists{/gist_id}","starred_url":"https://api.github.com/users/tripledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tripledes/subscriptions","organizations_url":"https://api.github.com/users/tripledes/orgs","repos_url":"https://api.github.com/users/tripledes/repos","events_url":"https://api.github.com/users/tripledes/events{/privacy}","received_events_url":"https://api.github.com/users/tripledes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T12:09:50Z","updated_at":"2018-07-10T12:15:06Z","closed_at":null,"author_association":"NONE","body":"##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nUsing `nmcli` module for creating/managing bridges, always sets `hairpin_mode` to 1, no matter what value is set on the playbook (no, yes, true or false).\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\nnmcli\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.6.1\r\n  config file = None\r\n  configured module search path = [u'/home/sjr/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/sjr/.pyenv/versions/2.7.15/envs/ansible-2.6-py2/lib/python2.7/site-packages/ansible\r\n  executable location = /home/sjr/.pyenv/versions/ansible-2.6-py2/bin/ansible\r\n  python version = 2.7.15 (default, May 13 2018, 21:50:46) [GCC 8.1.0]\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\nNothing changed.\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 running on Arch Linux, managed machines are CentOS 7.\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- name: Configure bridge slaves                                                                                                                                                                                                                                                  \r\n  nmcli:                                                                                                                                                                                                                                                                         \r\n    state: present                                                                                                                                                                                                                                                               \r\n    type: bridge-slave                                                                                                                                                                                                                                                           \r\n    conn_name: \"{{ item.bridge_conn_name }}\"                                                                                                                                                                                                                                     \r\n    ifname: \"{{ item.ifname }}\"                                                                                                                                                                                                                                                  \r\n    autoconnect: yes                                                                                                                                                                                                                                                             \r\n    master: br0                                                                                                                                                                                                                                                                  \r\n    hairpin: no                                                                                                                                                                                                                                                                  \r\n  with_items: \"{{ virt_phys_ifnames }}\"\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\nBRIDGING_OPTS=hairpin_mode=0\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nBRIDGING_OPTS=hairpin_mode=0\r\n<!--- Paste verbatim command output between quotes below -->\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/403800854","html_url":"https://github.com/ansible/ansible/issues/42569#issuecomment-403800854","issue_url":"https://api.github.com/repos/ansible/ansible/issues/42569","id":403800854,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzgwMDg1NA==","user":{"login":"ansibot","id":6585283,"node_id":"MDQ6VXNlcjY1ODUyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T12:15:06Z","updated_at":"2018-07-10T12:15:06Z","author_association":"CONTRIBUTOR","body":"Files identified in the description:\n* [lib/ansible/modules/net_tools/nmcli.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/net_tools/nmcli.py)\n\nIf these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.\n\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: components_banner --->"}}
{"actor":{"display_login":"ansibot"}}