old_contents: import string
  
  template = string.Template("""
  [DEFAULTS]
  zk_server_ip=$__contrail_zk_server_ip__
  zk_server_port=$__contrail_zk_server_port__
  listen_ip_addr=$__contrail_listen_ip_addr__
  listen_port=$__contrail_listen_port__
  log_local=$__contrail_log_local__
  log_file=$__contrail_log_file__
  cassandra_server_list=$__contrail_cassandra_server_list__
  log_level=SYS_NOTICE
  
  # minimim time to allow client to cache service information (seconds)
  ttl_min=300
  
  # maximum time to allow client to cache service information (seconds)
  ttl_max=1800
  
  # health check ping interval <=0 for disabling
  hc_interval=$__contrail_healthcheck_interval__
  
  # maximum hearbeats to miss before server will declare publisher out of
  # service. 
  hc_max_miss=3
  
  # use short TTL for agressive rescheduling if all services are not up
  ttl_short=1
  
  # for DNS service, we use fixed policy
  # even when the cluster has more than two control nodes, only two of these
  # should provide the DNS service
  [DNS-SERVER]
  policy = fixed
  
  ######################################################################
  # Other service specific knobs ...
   
  # use short TTL for agressive rescheduling if all services are not up
  # ttl_short=1
   
  # specify policy to use when assigning services
  # policy = [load-balance | round-robin | fixed]
  ######################################################################
  """)
  
new_contents: import string
  
  template = string.Template("""
  [DEFAULTS]
  zk_server_ip=$__contrail_zk_server_ip__
  zk_server_port=$__contrail_zk_server_port__
  listen_ip_addr=$__contrail_listen_ip_addr__
  listen_port=$__contrail_listen_port__
  log_local=$__contrail_log_local__
  log_file=$__contrail_log_file__
  cassandra_server_list=$__contrail_cassandra_server_list__
  log_level=SYS_NOTICE
  
  # minimim time to allow client to cache service information (seconds)
  ttl_min=300
  
  # maximum time to allow client to cache service information (seconds)
  ttl_max=1800
  
  # health check ping interval <=0 for disabling
  hc_interval=$__contrail_healthcheck_interval__
  
  # maximum hearbeats to miss before server will declare publisher out of
  # service. 
  hc_max_miss=3
  
  # use short TTL for agressive rescheduling if all services are not up
  ttl_short=1
  
  # for DNS service, we use fixed policy
  # even when the cluster has more than two control nodes, only two of these
  # should provide the DNS service
  [DNS-SERVER]
  policy = fixed
  
  # Use consistent hashing for Collector for better handling of HA events
  [Collector]
  policy = chash
  
  ######################################################################
  # Other service specific knobs ...
   
  # use short TTL for agressive rescheduling if all services are not up
  # ttl_short=1
   
  # specify policy to use when assigning services
  # policy = [load-balance | round-robin | fixed | chash]
  ######################################################################
  """)
  
subject: Enable consistent-hashing policy for Collector