{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/29237","labels_url":"https://api.github.com/repos/saltstack/salt/issues/29237/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/29237/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/29237/events","html_url":"https://github.com/saltstack/salt/pull/29237","id":119105941,"number":29237,"title":"Module network fixes","user":{"login":"sjorge","id":379665,"avatar_url":"https://avatars.githubusercontent.com/u/379665?v=3","gravatar_id":"","url":"https://api.github.com/users/sjorge","html_url":"https://github.com/sjorge","followers_url":"https://api.github.com/users/sjorge/followers","following_url":"https://api.github.com/users/sjorge/following{/other_user}","gists_url":"https://api.github.com/users/sjorge/gists{/gist_id}","starred_url":"https://api.github.com/users/sjorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjorge/subscriptions","organizations_url":"https://api.github.com/users/sjorge/orgs","repos_url":"https://api.github.com/users/sjorge/repos","events_url":"https://api.github.com/users/sjorge/events{/privacy}","received_events_url":"https://api.github.com/users/sjorge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bugfix%20-%20back-port","name":"Bugfix - back-port","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Changes","name":"Pending Changes","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T22:11:49Z","updated_at":"2015-11-30T15:53:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/29237","html_url":"https://github.com/saltstack/salt/pull/29237","diff_url":"https://github.com/saltstack/salt/pull/29237.diff","patch_url":"https://github.com/saltstack/salt/pull/29237.patch"},"body":"Since it was actually giving me some issues when testing some stuff... I fixed them all up so I could continue.\r\n\r\nFixes the following:\r\n- #29236\r\n- #29235\r\n- #29234\r\n-  #29231\r\n\r\nPartially fixes:\r\n- #29233\r\n- #29232\r\n\r\nSimilar fixes can probably be done for *BSD also but I do not have test systems for those at hand.\r\n\r\n```bash\r\n[root@core /opt/local/salt_dev/_mod]# /opt/local/salt/bin/salt-call --local network.active_tcp\r\n```\r\n\r\n```yaml\r\nlocal:\r\n    ----------\r\n    1:\r\n        ----------\r\n        local_addr:\r\n            2001:6f8:xxxx:yyyy::120\r\n        local_port:\r\n            22\r\n        remote_addr:\r\n            2001:6f8:xxxx:yyyy::1\r\n        remote_port:\r\n            3463\r\n    2:\r\n        ----------\r\n        local_addr:\r\n            2001:6f8:xxxx:yyyy::120\r\n        local_port:\r\n            22\r\n        remote_addr:\r\n            2001:6f8:xxxx:yyyy::1\r\n        remote_port:\r\n            19744\r\n```\r\n\r\n```bash\r\n[root@core /opt/local/salt_dev/_mod]# /opt/local/salt/bin/salt-call --local network.default_route inet\r\n```\r\n\r\n```yaml\r\nlocal:\r\n    |_\r\n      ----------\r\n      addr_family:\r\n          inet\r\n      destination:\r\n          default\r\n      flags:\r\n          UG\r\n      gateway:\r\n          172.16.yy.1\r\n      interface:\r\n          igb0\r\n      netmask:\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/160669247","html_url":"https://github.com/saltstack/salt/pull/29237#issuecomment-160669247","issue_url":"https://api.github.com/repos/saltstack/salt/issues/29237","id":160669247,"user":{"login":"sjorge","id":379665,"avatar_url":"https://avatars.githubusercontent.com/u/379665?v=3","gravatar_id":"","url":"https://api.github.com/users/sjorge","html_url":"https://github.com/sjorge","followers_url":"https://api.github.com/users/sjorge/followers","following_url":"https://api.github.com/users/sjorge/following{/other_user}","gists_url":"https://api.github.com/users/sjorge/gists{/gist_id}","starred_url":"https://api.github.com/users/sjorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjorge/subscriptions","organizations_url":"https://api.github.com/users/sjorge/orgs","repos_url":"https://api.github.com/users/sjorge/repos","events_url":"https://api.github.com/users/sjorge/events{/privacy}","received_events_url":"https://api.github.com/users/sjorge/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T15:53:52Z","updated_at":"2015-11-30T15:53:52Z","body":"@jfindlay It seems that __grains__ is not populated when the unit test runs.\r\nWhat is the preferred fix for this?"}}