{"action":"created","issue":{"url":"https://api.github.com/repos/yast/yast-network/issues/462","repository_url":"https://api.github.com/repos/yast/yast-network","labels_url":"https://api.github.com/repos/yast/yast-network/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/yast/yast-network/issues/462/comments","events_url":"https://api.github.com/repos/yast/yast-network/issues/462/events","html_url":"https://github.com/yast/yast-network/pull/462","id":189059256,"number":462,"title":"Udev Rule: Use also the dev_port when bus_id match is in use (bsc#1007172)","user":{"login":"teclator","id":7056681,"avatar_url":"https://avatars.githubusercontent.com/u/7056681?v=3","gravatar_id":"","url":"https://api.github.com/users/teclator","html_url":"https://github.com/teclator","followers_url":"https://api.github.com/users/teclator/followers","following_url":"https://api.github.com/users/teclator/following{/other_user}","gists_url":"https://api.github.com/users/teclator/gists{/gist_id}","starred_url":"https://api.github.com/users/teclator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teclator/subscriptions","organizations_url":"https://api.github.com/users/teclator/orgs","repos_url":"https://api.github.com/users/teclator/repos","events_url":"https://api.github.com/users/teclator/events{/privacy}","received_events_url":"https://api.github.com/users/teclator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-14T08:59:55Z","updated_at":"2016-11-16T09:51:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yast/yast-network/pulls/462","html_url":"https://github.com/yast/yast-network/pull/462","diff_url":"https://github.com/yast/yast-network/pull/462.diff","patch_url":"https://github.com/yast/yast-network/pull/462.patch"},"body":"When a interface is enslaved in a bond, then specially for easier card replacement the udev rule is modified using the bus_id instead of the mac address, but the bus_id could be not unique (multiport cards with one network function). In that cases also the dev_port should be used if it is exported via sysfs.\r\n\r\nHere is the current systemd code which takes care of predictable network device names https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L21 if you want to know more.\r\n\r\nAnd also this blog post https://major.io/2015/08/21/understanding-systemds-predictable-network-device-names/ could be interesting to clarify the current situation as well as how systemd choose the current name: https://github.com/systemd/systemd/blob/master/src/udev/net/link-config.c#L413\r\n\r\n**Note:** There was also a bug in hwinfo obtaining the bus_id only for the first interface using the same pci path, it has been fixed in this PR: https://github.com/openSUSE/hwinfo/pull/36\r\n"},"comment":{"url":"https://api.github.com/repos/yast/yast-network/issues/comments/260901861","html_url":"https://github.com/yast/yast-network/pull/462#issuecomment-260901861","issue_url":"https://api.github.com/repos/yast/yast-network/issues/462","id":260901861,"user":{"login":"mchf","id":1579239,"avatar_url":"https://avatars.githubusercontent.com/u/1579239?v=3","gravatar_id":"","url":"https://api.github.com/users/mchf","html_url":"https://github.com/mchf","followers_url":"https://api.github.com/users/mchf/followers","following_url":"https://api.github.com/users/mchf/following{/other_user}","gists_url":"https://api.github.com/users/mchf/gists{/gist_id}","starred_url":"https://api.github.com/users/mchf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchf/subscriptions","organizations_url":"https://api.github.com/users/mchf/orgs","repos_url":"https://api.github.com/users/mchf/repos","events_url":"https://api.github.com/users/mchf/events{/privacy}","received_events_url":"https://api.github.com/users/mchf/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T09:51:25Z","updated_at":"2016-11-16T09:51:25Z","body":"lgtm"}}
{"actor":{"display_login":"mchf"}}