{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23900","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23900/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23900/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23900/events","html_url":"https://github.com/saltstack/salt/issues/23900","id":77886177,"number":23900,"title":"salt ubuntu network building issue 2015.5.0","user":{"login":"hashi825","id":12505096,"avatar_url":"https://avatars.githubusercontent.com/u/12505096?v=3","gravatar_id":"","url":"https://api.github.com/users/hashi825","html_url":"https://github.com/hashi825","followers_url":"https://api.github.com/users/hashi825/followers","following_url":"https://api.github.com/users/hashi825/following{/other_user}","gists_url":"https://api.github.com/users/hashi825/gists{/gist_id}","starred_url":"https://api.github.com/users/hashi825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashi825/subscriptions","organizations_url":"https://api.github.com/users/hashi825/orgs","repos_url":"https://api.github.com/users/hashi825/repos","events_url":"https://api.github.com/users/hashi825/events{/privacy}","received_events_url":"https://api.github.com/users/hashi825/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-19T01:41:28Z","updated_at":"2015-05-19T05:39:15Z","closed_at":null,"body":"When previously building network interfaces with saltstack 2014.7.5\r\n\r\neth1:\r\n network.managed:\r\n  - enabled: True\r\n  - type: slave\r\n  - mtu: 9000\r\n  - master: bond0 \r\n\r\nThe following would create in the /etc/network/interfaces file\r\n\r\nauto eth1\r\niface eth1 inet manual\r\nmtu 9000\r\nbond_master bond0\r\n\r\n\r\nAfter upgrading to 2015.5.0 it will build the interfaces file as such\r\n\r\nauto eth1\r\niface eth1 inet manual\r\nmtu 9000\r\nbond-master bond0\r\n\r\nThe dash in bond-master then breaks interface parsing\r\n\r\n\r\n``` salt-call ip.get_interface eth1\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nIndexError: list index out of range\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-call\", line 11, in <module>\r\n    salt_call()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/scripts.py\", line 227, in salt_call\r\n    client.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/call.py\", line 69, in run\r\n    caller.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/caller.py\", line 236, in run\r\n    ret = self.call()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/caller.py\", line 138, in call\r\n    ret['return'] = func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/debian_ip.py\", line 1641, in get_interface\r\n    adapters = _parse_interfaces()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/debian_ip.py\", line 584, in _parse_interfaces\r\n    opt = attr.split('_', 1)[1]\r\nIndexError: list index out of range\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-call\", line 11, in <module>\r\n    salt_call()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/scripts.py\", line 227, in salt_call\r\n    client.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/call.py\", line 69, in run\r\n    caller.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/caller.py\", line 236, in run\r\n    ret = self.call()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/caller.py\", line 138, in call\r\n    ret['return'] = func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/debian_ip.py\", line 1641, in get_interface\r\n    adapters = _parse_interfaces()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/debian_ip.py\", line 584, in _parse_interfaces\r\n    opt = attr.split('_', 1)[1]\r\nIndexError: list index out of range ```\r\n\r\n\r\nCorrecting the dash back to an underscore restores proper functionality, but states using bond attempt to get re-applied with a dash instead of an underscore\r\n\r\nsalt-call ip.get_interface eth1\r\n```local:\r\n    - auto eth1\r\n    - iface eth1 inet manual\r\n    -     mtu 9000\r\n    -     bond-master bond0\r\n    - ```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/103345372","html_url":"https://github.com/saltstack/salt/issues/23900#issuecomment-103345372","issue_url":"https://api.github.com/repos/saltstack/salt/issues/23900","id":103345372,"user":{"login":"garethgreenaway","id":718525,"avatar_url":"https://avatars.githubusercontent.com/u/718525?v=3","gravatar_id":"","url":"https://api.github.com/users/garethgreenaway","html_url":"https://github.com/garethgreenaway","followers_url":"https://api.github.com/users/garethgreenaway/followers","following_url":"https://api.github.com/users/garethgreenaway/following{/other_user}","gists_url":"https://api.github.com/users/garethgreenaway/gists{/gist_id}","starred_url":"https://api.github.com/users/garethgreenaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethgreenaway/subscriptions","organizations_url":"https://api.github.com/users/garethgreenaway/orgs","repos_url":"https://api.github.com/users/garethgreenaway/repos","events_url":"https://api.github.com/users/garethgreenaway/events{/privacy}","received_events_url":"https://api.github.com/users/garethgreenaway/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T05:39:15Z","updated_at":"2015-05-19T05:39:15Z","body":"What version of Ubuntu is this one?  Looking at the Debian & Ubuntu documentation for bonding, it seems that bond-master is a valid parameter."}}