@classmethod
    def create_network(cls, network_name=None, **kwargs):
        network_name = network_name or data_utils.rand_name('test-network-')

        body = cls.client.create_network(name=network_name, **kwargs)
        network = body['network']
        cls.networks.append(network)
        return network
Wrapper utility that returns a test network.
dataset/ETHPy150Open openstack/neutron/neutron/tests/tempest/api/base.py/BaseNetworkTest.create_network