This commit adds tests for ERSPAN Type I decoding based on configuration
settings.
--- /dev/null
+Ensure ERSPAN Type I packets are decoded when configured
--- /dev/null
+requires:
+
+ min-version: 5.0.0
+
+
+args:
+ - --set decoder.erspan.typeI.enabled=true
+
+checks:
+
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ src_ip: 100.95.2.201
+ proto: ICMP
+ vlan: [1011]
+
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ src_ip: 100.95.3.105
+ proto: ICMP
+ vlan: [999]
+
+ - stats:
+ decoder.ipv4: 84
+ decoder.gre: 42
+ decoder.erspan: 42
--- /dev/null
+Ensure ERSPAN Type I packets are decoded when configured
--- /dev/null
+requires:
+
+ min-version: 5
+ lt-version: 6
+
+
+args:
+ - --set decoder.erspan.typeI.enabled=false
+
+checks:
+
+ - filter:
+ count: 0
+ match:
+ event_type: flow
+
+ - stats:
+ decoder.erspan: 0