'Bind port to net_uuid/lsw_id and install flow for inbound traffic
to vm.
:param port: an ovs_lib.VifPort object.
:param net_uuid: the net_uuid this port is to be associated with.
:param network_type: the network type (\'gre\', \'vlan\', \'flat\', \'local\')
:param physical_network: the physical network for \'vlan\' or \'flat\'
:param segmentation_id: the VID for \'vlan\' or tunnel ID for \'tunnel\'
:param fixed_ips: the ip addresses assigned to this port
:param device_owner: the string indicative of owner of this port
:param ovs_restarted: indicates if this is called for an OVS restart.'

def port_bound(self, port, net_uuid, network_type, physical_network, segmentation_id, fixed_ips, device_owner, ovs_restarted):

    if ((net_uuid not in self.vlan_manager) or ovs_restarted):
        self.provision_local_vlan(net_uuid, network_type, physical_network, segmentation_id)
    lvm = self.vlan_manager.get(net_uuid)
    lvm.vif_ports[port.vif_id] = port
    self.dvr_agent.bind_port_to_dvr(port, lvm, fixed_ips, device_owner)
    port_other_config = self.int_br.db_get_val('Port', port.port_name, 'other_config')
    if (port_other_config is None):
        if (port.vif_id in self.deleted_ports):
            LOG.debug('Port    %s    deleted    concurrently', port.vif_id)
        elif (port.vif_id in self.updated_ports):
            LOG.error(_LE('Expected    port    %s    not    found'), port.vif_id)
        else:
            LOG.debug('Unable    to    get    config    for    port    %s', port.vif_id)
        return False
    vlan_mapping = {'net_uuid': net_uuid, 'network_type': network_type, 'physical_network': str(physical_network)}
    if (segmentation_id is not None):
        vlan_mapping['segmentation_id'] = str(segmentation_id)
    port_other_config.update(vlan_mapping)
    self.int_br.set_db_attribute('Port', port.port_name, 'other_config', port_other_config)
    return True
