{% set flavor_name = flavor_name or "m1.tiny" %}
{% set image_name = image_name or "^(cirros.*uec|TestVM)$" %}
{
   "NovaDensityPlugin.boot_attach_and_list_with_secgroups": [
        {
            "args": {
                "flavor": {
                    "name": "{{flavor_name}}"
                },
                "image": {
                    "name": "{{image_name}}"
                },
                "security_group_count": 10,
                "rules_per_security_group": 10,
                "boot_server_kwargs": { "auto_assign_nic" : true },
                "create_volume_kwargs": {},
                "volume_size": 1
            },
            "runner": {
                "type": "constant",
                "times": {{ 10 * compute }},
                "concurrency": {{concurrency}}
            },
            "context": {
                "users": {
                    "tenants": 10,
                    "users_per_tenant": 10
                },
                "quotas": {
                    "neutron": {
                        "network": -1,
                        "security_group": -1,
                        "security_group_rule": -1,
                        "port": -1,
                        "subnet": -1,
                        "router": -1
                    },
                    "nova": {
                        "instances": -1,
                        "cores": -1,
                        "ram": -1,
                        "floating_ips": -1,
                        "security_groups": -1,
                        "security_group_rules": -1
                    },
                    "cinder": {
                        "volumes": -1,
                        "gigabytes": -1,
                        "snapshots": -1
                    }
                },
                "network": {
                    "start_cidr": "{{ "100.1.0.0/25" if gre_enabled else "1.0.0.0/25" }}",
                    "networks_per_tenant": 10
                }
            },
            "sla": {
                "failure_rate": { "max": 0 }
            }
        }
    ]
}
