Use ovs db notification to update metadata flows

This patch will use the notification from ovs db to update/delete
the OpenFlows for metadata service. So that when metadata proxy
restarts, the latest information can be upadted in OpenFlow. And thus,
the vm can still use metadata even if the metadata proxy restarts.

Change-Id: Idaf3060d80a95b210ca4934bd9b3ab29a7c6fe5a
Closes-bug: #1613615
This commit is contained in:
Hong Hui Xiao
2016-08-27 12:02:56 +08:00
committed by Li Ma
parent 00b49a8a11
commit 19232467d6
8 changed files with 62 additions and 23 deletions

View File

@@ -132,5 +132,10 @@ df_opts = [
cfg.StrOpt("vhost_sock_dir",
default="/var/run/openvswitch",
help=_("The directory in which vhost virtio socket"
"is created by all the vswitch daemons"))
"is created by all the vswitch daemons")),
cfg.StrOpt(
'metadata_interface',
default='tap-metadata',
help=_('The name of the interface to bind the metadata service proxy'),
)
]