{"action":"opened","issue":{"url":"https://api.github.com/repos/contiv/netplugin/issues/379","repository_url":"https://api.github.com/repos/contiv/netplugin","labels_url":"https://api.github.com/repos/contiv/netplugin/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/contiv/netplugin/issues/379/comments","events_url":"https://api.github.com/repos/contiv/netplugin/issues/379/events","html_url":"https://github.com/contiv/netplugin/issues/379","id":156008079,"number":379,"title":"Multi network use the same vlan id, it's ok?","user":{"login":"qkboy","id":14818747,"avatar_url":"https://avatars.githubusercontent.com/u/14818747?v=3","gravatar_id":"","url":"https://api.github.com/users/qkboy","html_url":"https://github.com/qkboy","followers_url":"https://api.github.com/users/qkboy/followers","following_url":"https://api.github.com/users/qkboy/following{/other_user}","gists_url":"https://api.github.com/users/qkboy/gists{/gist_id}","starred_url":"https://api.github.com/users/qkboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qkboy/subscriptions","organizations_url":"https://api.github.com/users/qkboy/orgs","repos_url":"https://api.github.com/users/qkboy/repos","events_url":"https://api.github.com/users/qkboy/events{/privacy}","received_events_url":"https://api.github.com/users/qkboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-20T17:01:41Z","updated_at":"2016-05-20T17:01:41Z","closed_at":null,"body":"I want to create multi network and use the same vlan id with different subnet ip address , but it's fail.\r\n```\r\nnetctl net create vlan205 --subnet=10.205.115.0/24 --encap=vlan --pkt-tag=115 --gateway=10.205.115.1\r\nERROR[000] requested vlan not available\r\n```\r\nSo, I try to comment out the code:\r\n```\r\n// Allocate a resource.\r\nfunc (r *AutoVLANCfgResource) Allocate(reqVal interface{}) (interface{}, error) {\r\n\toper := &AutoVLANOperResource{}\r\n\toper.StateDriver = r.StateDriver\r\n\terr := oper.Read(r.ID)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\r\n\tvar vlan uint\r\n\tif (reqVal != nil) && (reqVal.(uint) != 0) {\r\n\t\tvlan = reqVal.(uint)\r\n\t\t//if !oper.FreeVLANs.Test(vlan) {\r\n\t\t//\treturn nil, errors.New(\"requested vlan not available\")\r\n\t\t//}\r\n```\r\nAnd try again. It's work. Those containers based on the two subnet are connected normal.\r\nBut I don't know it's anything other problem? THX."}}
{"actor":{"display_login":"qkboy"}}