Binds OpenFlow and OVSDB IPs
[integration/packaging/puppet-opendaylight.git] / templates / org.opendaylight.ovsdb.library.cfg.erb
similarity index 92%
rename from files/org.opendaylight.ovsdb.library.cfg
rename to templates/org.opendaylight.ovsdb.library.cfg.erb
index cdb9b17978c780373699f4560218395bf131f744..ead2c83c153181202297aa186cada83709ca5dab 100644 (file)
@@ -7,10 +7,12 @@
 #default listens on port 6640 for switch initiated connection. Please use following config
 #knob for changing this default port.
 ovsdb-listener-port = 6640
+ovsdb-listener-ip = <%= scope.lookupvar('opendaylight::odl_bind_ip') %>
 
 #This flag will be enforced across all the connection's (passive and active) if set to true
+<%- if scope.lookupvar('opendaylight::enable_tls') -%>
 use-ssl = true
-
+<%- end -%>
 #Set Json Rpc decoder max frame length value. If the OVSDB node contains large configurations
 #that can cause connection related issue while reading the configuration from the OVSDB node
 #database. Increasing the max frame lenge helps resolve the issue. Please see following bug