'Create network and subnet resources in Neutron based on network
object.
The resource names will be <prefix>-network and <prefix>-subnet, where
prefix is taken from network object.
:param network: Network object from this module.'

def create_network_and_subnet(self, network):

    network.neutron_network = self.safe_client.create_network(self.tenant_id, network.name)
    network.neutron_subnet = self.safe_client.create_subnet(self.tenant_id, network.id, cidr=network.cidr, gateway_ip=network.gateway, name=network.subnet_name, enable_dhcp=False)
