package com.cisco.trex.stateless.model.capture;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class CaptureFilter {
    
    @JsonProperty("rx")
    private int rxPortMask;
    
    @JsonProperty("tx")
    private int txPortMask;

    @JsonProperty("rx")
    public int getRxPortMask() {
        return rxPortMask;
    }

    @JsonProperty("rx")
    public void setRxPortMask(int rxPortMask) {
        this.rxPortMask = rxPortMask;
    }

    @JsonProperty("tx")
    public int getTxPortMask() {
        return txPortMask;
    }

    @JsonProperty("tx")
    public void setTxPortMask(int txPortMask) {
        this.txPortMask = txPortMask;
    }
}

@@ -232,21 +232,17 @@
 ilter %7B%0A
-    
 %0A
+
     @Jso
@@ -289,13 +289,9 @@
 sk;%0A
-    
 %0A
+
     
@@ -306,24 +306,24 @@
 perty(%22tx%22)%0A
-
     private 
@@ -331,32 +331,88 @@
 nt txPortMask;%0A%0A
+    @JsonProperty(%22bpf%22)%0A    private String bpfFilter;%0A%0A
     @JsonPropert
@@ -810,10 +810,227 @@
 ;%0A    %7D%0A
+%0A%0A    @JsonProperty(%22bpf%22)%0A    public String getBpfFilter() %7B%0A        return this.bpfFilter;%0A    %7D%0A%0A    @JsonProperty(%22bpf%22)%0A    public void setBpfFilter(String bpfFilter) %7B%0A        this.bpfFilter = bpfFilter;%0A    %7D%0A%0A
 %7D%0A

add bpf filter property