def oc2_pair(actuator_nsid, action_name, target_name):
    """Decorator for your Consumer/Actuator functions.

    Use on functions you implement when inheriting
    from OpenC2CmdDispatchBase.

    Example:

    class MyDispatch(OOpenC2CmdDispatchBase):
        ...
        @oc2_pair('slpf', 'deny', 'ipv4_connection')
        def some_function(oc2_cmd):
            return OC2Response()
    """
    def _register(method):
        method.is_oc2_pair = True
        method.actuator_nsid = actuator_nsid
        method.action_name = action_name
        method.target_name = target_name
        return method
    return _register