def put(self, network):
        if network.id in self.cache:
            self.remove(self.cache[network.id])

        self.cache[network.id] = network

        for subnet in network.subnets:
            self.subnet_lookup[subnet.id] = network.id

        for port in network.ports:
            self.port_lookup[port.id] = network.id
dataset/ETHPy150Open openstack/neutron/neutron/agent/dhcp/agent.py/NetworkCache.put/original