{"action":"created","issue":{"url":"https://api.github.com/repos/containernetworking/cni/issues/660","repository_url":"https://api.github.com/repos/containernetworking/cni","labels_url":"https://api.github.com/repos/containernetworking/cni/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/containernetworking/cni/issues/660/comments","events_url":"https://api.github.com/repos/containernetworking/cni/issues/660/events","html_url":"https://github.com/containernetworking/cni/issues/660","id":438867644,"node_id":"MDU6SXNzdWU0Mzg4Njc2NDQ=","number":660,"title":"support config caching for changing network freely","user":{"login":"mars1024","id":15814167,"node_id":"MDQ6VXNlcjE1ODE0MTY3","avatar_url":"https://avatars1.githubusercontent.com/u/15814167?v=4","gravatar_id":"","url":"https://api.github.com/users/mars1024","html_url":"https://github.com/mars1024","followers_url":"https://api.github.com/users/mars1024/followers","following_url":"https://api.github.com/users/mars1024/following{/other_user}","gists_url":"https://api.github.com/users/mars1024/gists{/gist_id}","starred_url":"https://api.github.com/users/mars1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars1024/subscriptions","organizations_url":"https://api.github.com/users/mars1024/orgs","repos_url":"https://api.github.com/users/mars1024/repos","events_url":"https://api.github.com/users/mars1024/events{/privacy}","received_events_url":"https://api.github.com/users/mars1024/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-30T16:30:19Z","updated_at":"2019-04-30T16:32:00Z","closed_at":null,"author_association":"NONE","body":"As we know, CRI usually does not support multi CNI networks, in order to avoid the cni network config inconformity between ADD and DEL, we have to set a default name to avoid different cni network reloading real-time by file sorting like [ocicni](https://github.com/cri-o/ocicni/blob/a4c8e18142f8848e94a3bc2894e2a7e9ced3d1c3/pkg/ocicni/ocicni.go#L27). \r\n\r\nBut this will make CRI use CNI inflexibly, for example, if we put a new cni network config in `/etc/cni/net.d`, even it comes first in file sorting, it can not be the default network as we expected until we restart CRI or CNI manager.\r\n\r\nSo I think if we want to use different networks freely (like switching among flannel, calico or something else) in scene of CRI, we have to cache cni network config and runtime config on disk when ADD, and make DEL or CHECK use these configs firstly. Based on this, DEL will never fail no matter how default network change."},"comment":{"url":"https://api.github.com/repos/containernetworking/cni/issues/comments/488022392","html_url":"https://github.com/containernetworking/cni/issues/660#issuecomment-488022392","issue_url":"https://api.github.com/repos/containernetworking/cni/issues/660","id":488022392,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4ODAyMjM5Mg==","user":{"login":"mars1024","id":15814167,"node_id":"MDQ6VXNlcjE1ODE0MTY3","avatar_url":"https://avatars1.githubusercontent.com/u/15814167?v=4","gravatar_id":"","url":"https://api.github.com/users/mars1024","html_url":"https://github.com/mars1024","followers_url":"https://api.github.com/users/mars1024/followers","following_url":"https://api.github.com/users/mars1024/following{/other_user}","gists_url":"https://api.github.com/users/mars1024/gists{/gist_id}","starred_url":"https://api.github.com/users/mars1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars1024/subscriptions","organizations_url":"https://api.github.com/users/mars1024/orgs","repos_url":"https://api.github.com/users/mars1024/repos","events_url":"https://api.github.com/users/mars1024/events{/privacy}","received_events_url":"https://api.github.com/users/mars1024/received_events","type":"User","site_admin":false},"created_at":"2019-04-30T16:32:00Z","updated_at":"2019-04-30T16:32:00Z","author_association":"NONE","body":"ref [https://github.com/cri-o/ocicni/pull/31](https://github.com/cri-o/ocicni/pull/31)  @dcbw "}}
{"actor":{"display_login":"mars1024"}}