def bind_port(self, uuid, model, changes):
"""Called to bind port to VM.
:param uuid: UUID of Port
:param model: Model object
:returns: dict of vif parameters (vif_type, vif_details)
"""
LOG.info("bind_port: %s" % uuid)
LOG.info(changes)
port = model.ports.get(uuid, None)
if not port:
LOG.error("Cannot find port")
return dict()
retval = {'vif_type': 'ovs',
'vif_details': {'port_filter': False,
'bridge_name': 'br-int'}}
return retval
评论列表
文章目录