{"action":"created","issue":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/70","labels_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/70/comments","events_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/70/events","html_url":"https://github.com/pr1ntf/iohyve/issues/70","id":116481133,"number":70,"title":"Support more than one bridge on the host machine","user":{"login":"ramijebara","id":13223953,"avatar_url":"https://avatars.githubusercontent.com/u/13223953?v=3","gravatar_id":"","url":"https://api.github.com/users/ramijebara","html_url":"https://github.com/ramijebara","followers_url":"https://api.github.com/users/ramijebara/followers","following_url":"https://api.github.com/users/ramijebara/following{/other_user}","gists_url":"https://api.github.com/users/ramijebara/gists{/gist_id}","starred_url":"https://api.github.com/users/ramijebara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramijebara/subscriptions","organizations_url":"https://api.github.com/users/ramijebara/orgs","repos_url":"https://api.github.com/users/ramijebara/repos","events_url":"https://api.github.com/users/ramijebara/events{/privacy}","received_events_url":"https://api.github.com/users/ramijebara/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pr1ntf/iohyve/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-12T05:12:15Z","updated_at":"2015-11-12T19:47:12Z","closed_at":"2015-11-12T19:07:41Z","body":"Hi \r\n\r\nI needed my virtual machines to bind to 2 different networks on 2 different NICs. looking at the code it seems like iohyve only supports bridge0 with that being hard coded in the script. \r\n\r\nSince in this case I needed both bridge0 and bridge1, I changed __prepare_guest to attempt to read a bridge value, if it finds it, it will use it else everything works as expected in the application. It’s a bit of a hack as it expects any bridge other than bridge0 to be up and ready to go. \r\n\r\nPlease feel free to use this code if you find it useful. \r\n\r\nGit diff attached\r\n[iohyve.txt](https://github.com/pr1ntf/iohyve/files/32570/iohyve.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pr1ntf/iohyve/issues/comments/156214465","html_url":"https://github.com/pr1ntf/iohyve/issues/70#issuecomment-156214465","issue_url":"https://api.github.com/repos/pr1ntf/iohyve/issues/70","id":156214465,"user":{"login":"pr1ntf","id":3888554,"avatar_url":"https://avatars.githubusercontent.com/u/3888554?v=3","gravatar_id":"","url":"https://api.github.com/users/pr1ntf","html_url":"https://github.com/pr1ntf","followers_url":"https://api.github.com/users/pr1ntf/followers","following_url":"https://api.github.com/users/pr1ntf/following{/other_user}","gists_url":"https://api.github.com/users/pr1ntf/gists{/gist_id}","starred_url":"https://api.github.com/users/pr1ntf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr1ntf/subscriptions","organizations_url":"https://api.github.com/users/pr1ntf/orgs","repos_url":"https://api.github.com/users/pr1ntf/repos","events_url":"https://api.github.com/users/pr1ntf/events{/privacy}","received_events_url":"https://api.github.com/users/pr1ntf/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T19:47:12Z","updated_at":"2015-11-12T19:47:12Z","body":"Right now, and probably in the future with \"virtual switches\" you can set global properties with `iohyve setup`. Right now with support for only one bridge, you can attach it with `iohyve setup net=igb0`. In the future this will turn into something like `iohyve setup bridge0=igb0 bridge1=igb1 nat1=bridge1`. This way you can set a guest up with something like `iohyve set bsdguest tap=tap14 bridge=bridge1` etc...\r\n\r\n>Thanks again for this great tool!\r\nThanks for using and hacking on it! "}}