{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/35","labels_url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/35/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/35/events","html_url":"https://github.com/cloudfoundry/bosh-agent/pull/35","id":108292060,"number":35,"title":"[WIP] add network attribute \"preconfigured\" to support Softlayer network","user":{"login":"gu-bin","id":13128534,"avatar_url":"https://avatars.githubusercontent.com/u/13128534?v=3","gravatar_id":"","url":"https://api.github.com/users/gu-bin","html_url":"https://github.com/gu-bin","followers_url":"https://api.github.com/users/gu-bin/followers","following_url":"https://api.github.com/users/gu-bin/following{/other_user}","gists_url":"https://api.github.com/users/gu-bin/gists{/gist_id}","starred_url":"https://api.github.com/users/gu-bin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gu-bin/subscriptions","organizations_url":"https://api.github.com/users/gu-bin/orgs","repos_url":"https://api.github.com/users/gu-bin/repos","events_url":"https://api.github.com/users/gu-bin/events{/privacy}","received_events_url":"https://api.github.com/users/gu-bin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-25T09:29:27Z","updated_at":"2015-10-23T23:36:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/bosh-agent/pulls/35","html_url":"https://github.com/cloudfoundry/bosh-agent/pull/35","diff_url":"https://github.com/cloudfoundry/bosh-agent/pull/35.diff","patch_url":"https://github.com/cloudfoundry/bosh-agent/pull/35.patch"},"body":"This is for code review and no unit test yet. If the code is acceptable, I will add unit test code. Thanks."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/comments/150717133","html_url":"https://github.com/cloudfoundry/bosh-agent/pull/35#issuecomment-150717133","issue_url":"https://api.github.com/repos/cloudfoundry/bosh-agent/issues/35","id":150717133,"user":{"login":"cppforlife","id":185847,"avatar_url":"https://avatars.githubusercontent.com/u/185847?v=3","gravatar_id":"","url":"https://api.github.com/users/cppforlife","html_url":"https://github.com/cppforlife","followers_url":"https://api.github.com/users/cppforlife/followers","following_url":"https://api.github.com/users/cppforlife/following{/other_user}","gists_url":"https://api.github.com/users/cppforlife/gists{/gist_id}","starred_url":"https://api.github.com/users/cppforlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppforlife/subscriptions","organizations_url":"https://api.github.com/users/cppforlife/orgs","repos_url":"https://api.github.com/users/cppforlife/repos","events_url":"https://api.github.com/users/cppforlife/events{/privacy}","received_events_url":"https://api.github.com/users/cppforlife/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T23:36:32Z","updated_at":"2015-10-23T23:36:32Z","body":"All right. After thinking sometime I think we can go forward. I've adapted your code as a prototype into something similar for warden cpi: https://github.com/cppforlife/bosh-agent/commit/4ffbfa23ab99c6b49de31c29ba5c9a8e0fe71320. Except in warden cpi case I did not implement resolv.conf change. If you take this commit and add resolv.conf changes via resolvconf I that will satisfy your case.\r\n\r\nRegarding how to add info to resolv.conf, we should do the following:\r\n- write out selected DNS servers to /etc/resolvconf/resolv.conf.d/head\r\n- run `resolvconf`(http://manpages.ubuntu.com/manpages/lucid/man8/resolvconf.8.html) which should generate resolv.conf file based on director configuration."}}