def addNetwork(self, network, managing_nsa):
        assert type(network) is Network
        assert type(managing_nsa) is nsa.NetworkServiceAgent

        if network.id_ in self.networks:
            raise error.TopologyError('Entry for network with id %s already exists' % network.id_)

        self.networks[network.id_] = (network, managing_nsa)
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/topology/nml.py/Topology.addNetwork/original