:param context: PortContext instance describing the port
- Called inside transaction context on session, prior to
- create_port_precommit or update_port_precommit, to
- attempt to establish a port binding.
+ Called outside any transaction to attempt to establish a port
+ binding.
"""
binding = context._binding
- LOG.debug(_("Attempting to bind port %(port)s on host %(host)s "
- "for vnic_type %(vnic_type)s with profile %(profile)s"),
+ LOG.debug("Attempting to bind port %(port)s on host %(host)s "
+ "for vnic_type %(vnic_type)s with profile %(profile)s",
{'port': context._port['id'],
'host': binding.host,
'vnic_type': binding.vnic_type,