{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libnetwork/issues/865","repository_url":"https://api.github.com/repos/docker/libnetwork","labels_url":"https://api.github.com/repos/docker/libnetwork/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/docker/libnetwork/issues/865/comments","events_url":"https://api.github.com/repos/docker/libnetwork/issues/865/events","html_url":"https://github.com/docker/libnetwork/issues/865","id":126038251,"number":865,"title":"Network API should provide network details for global networks","user":{"login":"clinta","id":3177437,"avatar_url":"https://avatars.githubusercontent.com/u/3177437?v=3","gravatar_id":"","url":"https://api.github.com/users/clinta","html_url":"https://github.com/clinta","followers_url":"https://api.github.com/users/clinta/followers","following_url":"https://api.github.com/users/clinta/following{/other_user}","gists_url":"https://api.github.com/users/clinta/gists{/gist_id}","starred_url":"https://api.github.com/users/clinta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinta/subscriptions","organizations_url":"https://api.github.com/users/clinta/orgs","repos_url":"https://api.github.com/users/clinta/repos","events_url":"https://api.github.com/users/clinta/events{/privacy}","received_events_url":"https://api.github.com/users/clinta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-11T21:16:24Z","updated_at":"2016-02-21T12:59:47Z","closed_at":null,"body":"The libnetwork API can be used to create a global type network and all the network details are published to the cluster KV store. But there is no easy way to interface with the KV store from a driver to retrieve that data from another node.\r\n\r\nThere are two solutions I can think of. Either an interface needs to be provided which would allow a network plugin to interface with the KV store, or an easier solution I think would be to include all the network details when calling NetworkDriver.CreateEndpoint so that the driver can create the network on the fly."},"comment":{"url":"https://api.github.com/repos/docker/libnetwork/issues/comments/186819787","html_url":"https://github.com/docker/libnetwork/issues/865#issuecomment-186819787","issue_url":"https://api.github.com/repos/docker/libnetwork/issues/865","id":186819787,"user":{"login":"chenchun","id":985861,"avatar_url":"https://avatars.githubusercontent.com/u/985861?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchun","html_url":"https://github.com/chenchun","followers_url":"https://api.github.com/users/chenchun/followers","following_url":"https://api.github.com/users/chenchun/following{/other_user}","gists_url":"https://api.github.com/users/chenchun/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchun/subscriptions","organizations_url":"https://api.github.com/users/chenchun/orgs","repos_url":"https://api.github.com/users/chenchun/repos","events_url":"https://api.github.com/users/chenchun/events{/privacy}","received_events_url":"https://api.github.com/users/chenchun/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T12:59:47Z","updated_at":"2016-02-21T12:59:47Z","body":"> If those options were passed along with the CreateEndpoint call this wouldn't be necessary.\r\n\r\nWhat are the configurations you are talking about?\r\n\r\n> If I want the plugin to talk directly to the KV store then I need to implement a library for every docker supported KV store, and still ask the docker daemon for the configuration information about the store.\r\n\r\nLibnetwork make use of https://github.com/docker/libkv KV interface to store global/local states. If you also use libkv, then your plugin will support every KV store libnetwork does."}}