def create_instance(self, port):
        """Enqueue instance create"""
        instance_type = self.get_instance_type(port)
        if not instance_type:
            return
        i_res = MechResource(port['device_id'], instance_type, a_const.CREATE)
        self.provision_queue.put(i_res)
def create_instance ( self , port ) : instance_type = self . get_instance_type ( port ) if not instance_type : return i_res = MechResource ( port [ 'device_id' ] , instance_type , a_const . CREATE ) self . provision_queue . put ( i_res )
Enqueue instance create