old_contents: import string
  
  template = string.Template("""#contrail-collector-marker-start
  listen contrail-collector-stats :5938
     mode http
     stats enable
     stats uri /
     stats auth $__contrail_hap_user__:$__contrail_hap_passwd__
  
  frontend  contrail-analytics-api *:8081
      default_backend    contrail-analytics-api
  
  backend contrail-analytics-api
      option nolinger
      balance     roundrobin
      option tcp-check
      tcp-check connect port 6379
      default-server error-limit 1 on-error mark-down
  $__contrail_analytics_api_backend_servers__
  
  #contrail-collector-marker-end
  """)
  
new_contents: import string
  
  template = string.Template("""#contrail-collector-marker-start
  listen contrail-collector-stats :5938
     mode http
     stats enable
     stats uri /
     stats auth $__contrail_hap_user__:$__contrail_hap_passwd__
  
  frontend  contrail-analytics-api *:8081
      default_backend    contrail-analytics-api
  
  backend contrail-analytics-api
      option nolinger
      timeout server 3m
      balance     roundrobin
  $__contrail_analytics_api_backend_servers__
  
  #contrail-collector-marker-end
  """)
  
subject: Remove tcp-check connect option for redis on haproxy