pyveth - veth driver for Docker Engine written in Python
Jacek Kowalski
yesterday 177b27ce39daf00c67b0d6dcc6727235b29f2542
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import shelve
from typing import Dict
 
from docker_plugin_api.NetworkDriverEntities import NetworkCreateEntity, EndpointCreateEntity
 
 
networks_store = shelve.open('networks', writeback=True)
networks: Dict[str, NetworkCreateEntity] = networks_store
 
 
def networks_sync():
    networks_store.sync()
 
 
endpoints: Dict[str, EndpointCreateEntity] = {}