summaryrefslogtreecommitdiffstats
path: root/extras/packetforge/parsegraph/samples/mac_ipv4.json
diff options
context:
space:
mode:
Diffstat (limited to 'extras/packetforge/parsegraph/samples/mac_ipv4.json')
-rw-r--r--extras/packetforge/parsegraph/samples/mac_ipv4.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/extras/packetforge/parsegraph/samples/mac_ipv4.json b/extras/packetforge/parsegraph/samples/mac_ipv4.json
new file mode 100644
index 00000000000..c0a8d18177d
--- /dev/null
+++ b/extras/packetforge/parsegraph/samples/mac_ipv4.json
@@ -0,0 +1,24 @@
+{
+ "type" : "path",
+ "stack" : [
+ {
+ "header" : "mac"
+ },
+ {
+ "header" : "ipv4",
+ "fields" : [
+ {
+ "name" : "src",
+ "value" : "1.1.1.1",
+ "mask" : "255.255.255.255"
+ },
+ {
+ "name" : "dst",
+ "value" : "2.2.2.2",
+ "mask" : "255.255.255.255"
+ }
+ ]
+ }
+ ],
+ "actions" : "redirect-to-queue 3"
+}