enable rpc_interface for cassandra

Change-Id: Ie1c6f39b906f962551be9397e0f4c10377e4cf95
diff --git a/opencontrail/files/2.2/cassandra.yaml b/opencontrail/files/2.2/cassandra.yaml
index e6abd7b..3ec784d 100644
--- a/opencontrail/files/2.2/cassandra.yaml
+++ b/opencontrail/files/2.2/cassandra.yaml
@@ -442,7 +442,11 @@
 # you can specify which should be chosen using rpc_interface_prefer_ipv6. If false the first ipv4
 # address will be used. If true the first ipv6 address will be used. Defaults to false preferring
 # ipv4. If there is only one address it will be selected regardless of ipv4/ipv6.
+{% if database.bind.interface is defined %}
+rpc_interface: {{ database.bind.interface }}
+{% else %}
 rpc_address: {{ database.bind.host }}
+{% endif %}
 # port for Thrift to listen for clients on
 rpc_port: {{ database.bind.rpc_port }}
 
diff --git a/opencontrail/files/3.0/cassandra.yaml b/opencontrail/files/3.0/cassandra.yaml
index e6abd7b..3ec784d 100644
--- a/opencontrail/files/3.0/cassandra.yaml
+++ b/opencontrail/files/3.0/cassandra.yaml
@@ -442,7 +442,11 @@
 # you can specify which should be chosen using rpc_interface_prefer_ipv6. If false the first ipv4
 # address will be used. If true the first ipv6 address will be used. Defaults to false preferring
 # ipv4. If there is only one address it will be selected regardless of ipv4/ipv6.
+{% if database.bind.interface is defined %}
+rpc_interface: {{ database.bind.interface }}
+{% else %}
 rpc_address: {{ database.bind.host }}
+{% endif %}
 # port for Thrift to listen for clients on
 rpc_port: {{ database.bind.rpc_port }}