def _port_bound(self, port_id, network_id, network_type, physical_network,
                    segmentation_id, port_security_enabled, set_port_sriov):
        """Bind the port to the recived network."""
        super(HNVAgent, self)._port_bound(port_id, network_id, network_type,
                                          physical_network, segmentation_id,
                                          port_security_enabled,
                                          set_port_sriov)
        LOG.debug("Getting the profile id for the current port.")
        profile_id = self._neutron_client.get_port_profile_id(port_id)

        LOG.debug("Trying to set port profile id %r for the current port %r.",
                  profile_id, port_id)
        self._utils.set_vswitch_port_profile_id(
            switch_port_name=port_id,
            profile_id=profile_id,
            profile_data=h_const.PROFILE_DATA,
            profile_name=h_const.PROFILE_NAME,
            net_cfg_instance_id=h_const.NET_CFG_INSTANCE_ID,
            cdn_label_id=h_const.CDN_LABEL_ID,
            cdn_label_string=h_const.CDN_LABEL_STRING,
            vendor_id=h_const.VENDOR_ID,
            vendor_name=h_const.VENDOR_NAME)
def _port_bound ( self , port_id , network_id , network_type , physical_network , segmentation_id , port_security_enabled , set_port_sriov ) : super ( HNVAgent , self ) . _port_bound ( port_id , network_id , network_type , physical_network , segmentation_id , port_security_enabled , set_port_sriov ) LOG . debug ( "Getting the profile id for the current port." ) profile_id = self . _neutron_client . get_port_profile_id ( port_id ) LOG . debug ( "Trying to set port profile id %r for the current port %r." , profile_id , port_id ) self . _utils . set_vswitch_port_profile_id ( switch_port_name = port_id , profile_id = profile_id , profile_data = h_const . PROFILE_DATA , profile_name = h_const . PROFILE_NAME , net_cfg_instance_id = h_const . NET_CFG_INSTANCE_ID , cdn_label_id = h_const . CDN_LABEL_ID , cdn_label_string = h_const . CDN_LABEL_STRING , vendor_id = h_const . VENDOR_ID , vendor_name = h_const . VENDOR_NAME )
Bind the port to the recived network.