{"action":"created","issue":{"url":"https://api.github.com/repos/google/novm/issues/9","labels_url":"https://api.github.com/repos/google/novm/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/google/novm/issues/9/comments","events_url":"https://api.github.com/repos/google/novm/issues/9/events","html_url":"https://github.com/google/novm/issues/9","id":53958536,"number":9,"title":"--nic instructions do not work","user":{"login":"pwaller","id":438648,"avatar_url":"https://avatars.githubusercontent.com/u/438648?v=3","gravatar_id":"","url":"https://api.github.com/users/pwaller","html_url":"https://github.com/pwaller","followers_url":"https://api.github.com/users/pwaller/followers","following_url":"https://api.github.com/users/pwaller/following{/other_user}","gists_url":"https://api.github.com/users/pwaller/gists{/gist_id}","starred_url":"https://api.github.com/users/pwaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwaller/subscriptions","organizations_url":"https://api.github.com/users/pwaller/orgs","repos_url":"https://api.github.com/users/pwaller/repos","events_url":"https://api.github.com/users/pwaller/events{/privacy}","received_events_url":"https://api.github.com/users/pwaller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-10T13:44:08Z","updated_at":"2015-01-14T08:54:54Z","closed_at":"2015-01-14T08:54:54Z","body":"The only instructions I could find for specifying a network device were in the output of `novm run -h`.\r\n\r\n```\r\n        Network definitions are provided as --nic [opt=val],...\r\n\r\n            Available options are:\r\n\r\n            mac=00:11:22:33:44:55 Set the MAC address.\r\n            tap=tap1              Set the tap name.\r\n            bridge=br0            Enslave to a bridge.\r\n            ip=192.168.1.2/24     Set the IP address.\r\n            gateway=192.168.1.1   Set the gateway IP.\r\n            debug=true            Enable debugging.\r\n```\r\n\r\nSo I tried:\r\n\r\n```\r\n# novm --debug create --nofork --init --nic tap=tap1,ip=192.168.1.2/24,gateway=192.168.1.1,debug=true\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/../lib/novm/python/novm/cli.py\", line 203, in main\r\n    result = fn(*built_args)\r\n  File \"/usr/bin/../lib/novm/python/novm/shell.py\", line 118, in create\r\n    command=command)\r\n  File \"/usr/bin/../lib/novm/python/novm/manager.py\", line 287, in create\r\n    vmmopt=vmmopt)\r\n  File \"/usr/bin/../lib/novm/python/novm/manager.py\", line 341, in run_novmm\r\n    state_args, metadata = state(state_file)\r\n  File \"/usr/bin/../lib/novm/python/novm/manager.py\", line 187, in state\r\n    for (index, nic) in zip(range(len(nics)), nics)\r\n  File \"/usr/bin/../lib/novm/python/novm/net.py\", line 201, in create\r\n    }, **kwargs)\r\n  File \"/usr/bin/../lib/novm/python/novm/virtio.py\", line 66, in create\r\n    **kwargs)\r\nTypeError: create() got an unexpected keyword argument 'tap'\r\n```\r\n\r\nAnd:\r\n\r\n```\r\n# novm --debug create --nofork --init --nic ip=192.168.1.2/24,gateway=192.168.1.1,debug=true\r\n20`15/01/10 13:43:00 json: cannot unmarshal string into Go value of type bool\r\n```"},"comment":{"url":"https://api.github.com/repos/google/novm/issues/comments/69886388","html_url":"https://github.com/google/novm/issues/9#issuecomment-69886388","issue_url":"https://api.github.com/repos/google/novm/issues/9","id":69886388,"user":{"login":"amscanne","id":425773,"avatar_url":"https://avatars.githubusercontent.com/u/425773?v=3","gravatar_id":"","url":"https://api.github.com/users/amscanne","html_url":"https://github.com/amscanne","followers_url":"https://api.github.com/users/amscanne/followers","following_url":"https://api.github.com/users/amscanne/following{/other_user}","gists_url":"https://api.github.com/users/amscanne/gists{/gist_id}","starred_url":"https://api.github.com/users/amscanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amscanne/subscriptions","organizations_url":"https://api.github.com/users/amscanne/orgs","repos_url":"https://api.github.com/users/amscanne/repos","events_url":"https://api.github.com/users/amscanne/events{/privacy}","received_events_url":"https://api.github.com/users/amscanne/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T08:54:54Z","updated_at":"2015-01-14T08:54:54Z","body":"Thanks for the report! I've fixed the two problems indicated."}}