pyveth - veth driver for Docker Engine written in Python
Jacek Kowalski
2020-05-04 8c0fc507499360bce22bd30a1edb1d0c81ffe1f9
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] = {}