{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/wicked/issues/565","labels_url":"https://api.github.com/repos/openSUSE/wicked/issues/565/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/wicked/issues/565/comments","events_url":"https://api.github.com/repos/openSUSE/wicked/issues/565/events","html_url":"https://github.com/openSUSE/wicked/pull/565","id":94037932,"number":565,"title":"fsm: update worker's iftype on refresh","user":{"login":"pwieczorkiewicz","id":5213897,"avatar_url":"https://avatars.githubusercontent.com/u/5213897?v=3","gravatar_id":"","url":"https://api.github.com/users/pwieczorkiewicz","html_url":"https://github.com/pwieczorkiewicz","followers_url":"https://api.github.com/users/pwieczorkiewicz/followers","following_url":"https://api.github.com/users/pwieczorkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/pwieczorkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwieczorkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwieczorkiewicz/subscriptions","organizations_url":"https://api.github.com/users/pwieczorkiewicz/orgs","repos_url":"https://api.github.com/users/pwieczorkiewicz/repos","events_url":"https://api.github.com/users/pwieczorkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/pwieczorkiewicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openSUSE/wicked/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-09T12:38:19Z","updated_at":"2015-07-31T09:44:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openSUSE/wicked/pulls/565","html_url":"https://github.com/openSUSE/wicked/pull/565","diff_url":"https://github.com/openSUSE/wicked/pull/565.diff","patch_url":"https://github.com/openSUSE/wicked/pull/565.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/openSUSE/wicked/issues/comments/126627035","html_url":"https://github.com/openSUSE/wicked/pull/565#issuecomment-126627035","issue_url":"https://api.github.com/repos/openSUSE/wicked/issues/565","id":126627035,"user":{"login":"pwieczorkiewicz","id":5213897,"avatar_url":"https://avatars.githubusercontent.com/u/5213897?v=3","gravatar_id":"","url":"https://api.github.com/users/pwieczorkiewicz","html_url":"https://github.com/pwieczorkiewicz","followers_url":"https://api.github.com/users/pwieczorkiewicz/followers","following_url":"https://api.github.com/users/pwieczorkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/pwieczorkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwieczorkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwieczorkiewicz/subscriptions","organizations_url":"https://api.github.com/users/pwieczorkiewicz/orgs","repos_url":"https://api.github.com/users/pwieczorkiewicz/repos","events_url":"https://api.github.com/users/pwieczorkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/pwieczorkiewicz/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T09:44:18Z","updated_at":"2015-07-31T09:44:18Z","body":"In that pull firstly check if dev->link.type is set and valid:\r\n if not then:\r\n   normalize it to UNKNOWN; \r\n\r\nthen check if worker's iftype is different than that from dev->link.type\r\n  if not then:\r\n    do nothing;\r\n  otherwise:\r\n    if worker's iftype is UNKNOWN or not valid then:\r\n      update it from dev->link.type;\r\n    otherwise:\r\n      fail /*since worker's iftype is normal, but differs from it's refreshed device linktype (some strange error)*/"}}