id: pdu_pdu_filter
label: PDU Filter
flags: [ python ]

parameters:
-   id: k
    label: Key
    dtype: raw
    default: pmt.intern("key")
-   id: v
    label: Value
    dtype: raw
    default: pmt.intern("value")
-   id: invert
    label: Invert Filter
    dtype: bool
    default: 'False'
    options: ['False', 'True']
    option_labels: ['No', 'Yes']

inputs:
-   domain: message
    id: pdus
    optional: true

outputs:
-   domain: message
    id: pdus
    optional: true

templates:
    imports: |-
        from gnuradio import pdu
        import pmt
    make: pdu.pdu_filter(${k}, ${v}, ${invert})
    callbacks:
    - set_key(${k})
    - set_val(${v})
    - set_inversion(${invert})

file_format: 1
