import string

template = string.Template("""
[DEFAULTS]
ifmap_server_ip=$__contrail_ifmap_server_ip__
ifmap_server_port=$__contrail_ifmap_server_port__
ifmap_username=$__contrail_ifmap_username__
ifmap_password=$__contrail_ifmap_password__
cassandra_server_list=$__contrail_cassandra_server_list__
listen_ip_addr=$__contrail_listen_ip_addr__
listen_port=$__contrail_listen_port__
multi_tenancy=$__contrail_multi_tenancy__
log_file=$__contrail_log_file__
log_local=1
log_level=SYS_NOTICE
disc_server_ip=$__contrail_disc_server_ip__
disc_server_port=$__contrail_disc_server_port__
zk_server_ip=$__contrail_zookeeper_server_ip__
redis_server_ip=$__contrail_redis_ip__
rabbit_server=$__rabbit_server_ip__
rabbit_port=$__rabbit_server_port__

[SECURITY]
use_certs=$__contrail_use_certs__
keyfile=$__contrail_keyfile_location__
certfile=$__contrail_certfile_location__
ca_certs=$__contrail_cacertfile_location__
""")

import string

template = string.Template("""
[DEFAULTS]
ifmap_server_ip=$__contrail_ifmap_server_ip__
ifmap_server_port=$__contrail_ifmap_server_port__
ifmap_username=$__contrail_ifmap_username__
ifmap_password=$__contrail_ifmap_password__
cassandra_server_list=$__contrail_cassandra_server_list__
listen_ip_addr=$__contrail_listen_ip_addr__
listen_port=$__contrail_listen_port__
multi_tenancy=$__contrail_multi_tenancy__
log_file=$__contrail_log_file__
log_local=1
log_level=SYS_NOTICE
disc_server_ip=$__contrail_disc_server_ip__
disc_server_port=$__contrail_disc_server_port__
zk_server_ip=$__contrail_zookeeper_server_ip__
redis_server_ip=$__contrail_redis_ip__
rabbit_server=$__rabbit_server_ip__
rabbit_port=$__rabbit_server_port__
list_optimization_enabled=True

[SECURITY]
use_certs=$__contrail_use_certs__
keyfile=$__contrail_keyfile_location__
certfile=$__contrail_certfile_location__
ca_certs=$__contrail_cacertfile_location__
""")

Enable port list optimization by default for new install+provision
config-perf: Enable port list optimization by default for new install+provision

From R1.05 onwards port is created as child of project. This leads to
better list performance.

Change-Id: Id0acbd1194403c500cdf0ee5851ef6cf5dba1c97
Closes-Bug: #1441924
