{"action":"created","issue":{"url":"https://api.github.com/repos/vishvananda/netlink/issues/91","repository_url":"https://api.github.com/repos/vishvananda/netlink","labels_url":"https://api.github.com/repos/vishvananda/netlink/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/vishvananda/netlink/issues/91/comments","events_url":"https://api.github.com/repos/vishvananda/netlink/issues/91/events","html_url":"https://github.com/vishvananda/netlink/pull/91","id":129955454,"number":91,"title":"RFC: force AddList to get rid of unexpected information","user":{"login":"liusdu","id":1199332,"avatar_url":"https://avatars.githubusercontent.com/u/1199332?v=3","gravatar_id":"","url":"https://api.github.com/users/liusdu","html_url":"https://github.com/liusdu","followers_url":"https://api.github.com/users/liusdu/followers","following_url":"https://api.github.com/users/liusdu/following{/other_user}","gists_url":"https://api.github.com/users/liusdu/gists{/gist_id}","starred_url":"https://api.github.com/users/liusdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liusdu/subscriptions","organizations_url":"https://api.github.com/users/liusdu/orgs","repos_url":"https://api.github.com/users/liusdu/repos","events_url":"https://api.github.com/users/liusdu/events{/privacy}","received_events_url":"https://api.github.com/users/liusdu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-30T07:58:09Z","updated_at":"2016-02-14T03:50:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vishvananda/netlink/pulls/91","html_url":"https://github.com/vishvananda/netlink/pull/91","diff_url":"https://github.com/vishvananda/netlink/pull/91.diff","patch_url":"https://github.com/vishvananda/netlink/pull/91.patch"},"body":"#`AddList` returned all addresses when the protocol family is not supported. For example, With a kernel with IPV6 disabled. if I call `netlink.AddrList(link, netlink.FAMILY_V6)`., it will return all ips of this interface.  This behavior may confuse user. After this patch it will return []  instead.\r\n \r\nWhen I ran docker daemon on a machine with ipv6 disabled, I encounterd the following error. And this patch made it workable.\r\n```\r\nFATA[0000] Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: Failed to setup IP tables, cannot acquire Interface address: Interface docker0 has no IPv4 addresses\r\n```"},"comment":{"url":"https://api.github.com/repos/vishvananda/netlink/issues/comments/183816921","html_url":"https://github.com/vishvananda/netlink/pull/91#issuecomment-183816921","issue_url":"https://api.github.com/repos/vishvananda/netlink/issues/91","id":183816921,"user":{"login":"liusdu","id":1199332,"avatar_url":"https://avatars.githubusercontent.com/u/1199332?v=3","gravatar_id":"","url":"https://api.github.com/users/liusdu","html_url":"https://github.com/liusdu","followers_url":"https://api.github.com/users/liusdu/followers","following_url":"https://api.github.com/users/liusdu/following{/other_user}","gists_url":"https://api.github.com/users/liusdu/gists{/gist_id}","starred_url":"https://api.github.com/users/liusdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liusdu/subscriptions","organizations_url":"https://api.github.com/users/liusdu/orgs","repos_url":"https://api.github.com/users/liusdu/repos","events_url":"https://api.github.com/users/liusdu/events{/privacy}","received_events_url":"https://api.github.com/users/liusdu/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T03:50:06Z","updated_at":"2016-02-14T03:50:06Z","body":"I run the UT. addaddr test passed.\r\n```\r\ngo test -v github.com/vishvananda/netlink/./\r\n=== RUN   TestAddrAddDel\r\n--- PASS: TestAddrAddDel (0.00s)\r\n=== RUN   TestClassAddDel\r\n--- FAIL: TestClassAddDel (0.00s)\r\n\tclass_test.go:11: operation not supported\r\n=== RUN   TestFilterAddDel\r\n--- FAIL: TestFilterAddDel (0.00s)\r\n\tfilter_test.go:14: operation not supported\r\n```"}}