{"action":"created","issue":{"url":"https://api.github.com/repos/contiv/netplugin/issues/863","repository_url":"https://api.github.com/repos/contiv/netplugin","labels_url":"https://api.github.com/repos/contiv/netplugin/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/contiv/netplugin/issues/863/comments","events_url":"https://api.github.com/repos/contiv/netplugin/issues/863/events","html_url":"https://github.com/contiv/netplugin/pull/863","id":225505221,"number":863,"title":"Docker network creation workflow changes for swarm-mode","user":{"login":"gkvijay","id":17859416,"avatar_url":"https://avatars1.githubusercontent.com/u/17859416?v=3","gravatar_id":"","url":"https://api.github.com/users/gkvijay","html_url":"https://github.com/gkvijay","followers_url":"https://api.github.com/users/gkvijay/followers","following_url":"https://api.github.com/users/gkvijay/following{/other_user}","gists_url":"https://api.github.com/users/gkvijay/gists{/gist_id}","starred_url":"https://api.github.com/users/gkvijay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkvijay/subscriptions","organizations_url":"https://api.github.com/users/gkvijay/orgs","repos_url":"https://api.github.com/users/gkvijay/repos","events_url":"https://api.github.com/users/gkvijay/events{/privacy}","received_events_url":"https://api.github.com/users/gkvijay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-01T19:27:34Z","updated_at":"2017-05-17T21:12:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contiv/netplugin/pulls/863","html_url":"https://github.com/contiv/netplugin/pull/863","diff_url":"https://github.com/contiv/netplugin/pull/863.diff","patch_url":"https://github.com/contiv/netplugin/pull/863.patch"},"body":"Add support for a new mode (docker-compose) in which user explicitly creates a docker network. Without this mode contiv users were required to create a contiv network and contiv implicitly creates a docker network. With this change the following workflows are allowed in swarm-mode.\r\n\r\n1. create a docker network and specify the network driver as contiv\r\ndocker network create docker-net-1 --subnet 100.0.0.0/24 --gateway 100.0.0.1 -d contiv/v2plugin:0.1 --ipam-driver contiv/v2plugin:0.1\r\n\r\n2. create a contiv group with a tag. Then create a docker network with that tag to associate the docker network to the contiv group (epg)\r\nnetctl group create -p p1 -tag epglabel contiv-net-1 group1\r\ndocker network create docker-net-2 -d contiv/v2plugin:0.1 -o contiv-tag=epglabel --ipam-driver contiv/v2plugin:0.1 --ipam-opt contiv-tag=epglabel --attachable \r\n\r\n3. create a contiv network with a tag and create a docker network with the same tag to associate them\r\nnetctl network create contiv-net-2 -s 20.2.2.2/24 -g 20.2.2.20 -tag netlabel\r\ndocker network create docker-net-3 -d contiv/v2plugin:0.1 -o contiv-tag=netlabel --ipam-driver contiv/v2plugin:0.1 --ipam-opt contiv-tag=netlabel \r\n"},"comment":{"url":"https://api.github.com/repos/contiv/netplugin/issues/comments/302233150","html_url":"https://github.com/contiv/netplugin/pull/863#issuecomment-302233150","issue_url":"https://api.github.com/repos/contiv/netplugin/issues/863","id":302233150,"user":{"login":"gkvijay","id":17859416,"avatar_url":"https://avatars1.githubusercontent.com/u/17859416?v=3","gravatar_id":"","url":"https://api.github.com/users/gkvijay","html_url":"https://github.com/gkvijay","followers_url":"https://api.github.com/users/gkvijay/followers","following_url":"https://api.github.com/users/gkvijay/following{/other_user}","gists_url":"https://api.github.com/users/gkvijay/gists{/gist_id}","starred_url":"https://api.github.com/users/gkvijay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkvijay/subscriptions","organizations_url":"https://api.github.com/users/gkvijay/orgs","repos_url":"https://api.github.com/users/gkvijay/repos","events_url":"https://api.github.com/users/gkvijay/events{/privacy}","received_events_url":"https://api.github.com/users/gkvijay/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T21:12:35Z","updated_at":"2017-05-17T21:12:35Z","body":"@dseevr @rhim, PTAL\r\n"}}
{"actor":{"display_login":"gkvijay"}}