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