diff --git a/examples/host_containers/config/s1-runtime.json b/examples/host_containers/config/s1-runtime.json index 6fdf42e..733810a 100644 --- a/examples/host_containers/config/s1-runtime.json +++ b/examples/host_containers/config/s1-runtime.json @@ -1,106 +1,100 @@ { - "target": "bmv2", - "p4info": "build/load_balance.p4.p4info.txt", - "bmv2_json": "build/load_balance.json", - "table_entries": [ - { - "table": "MyIngress.ecmp_group", - "default_action": true, - "action_name": "MyIngress.drop", - "action_params": {} - }, - { - "table": "MyIngress.ecmp_group", - "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] - }, - "action_name": "MyIngress.set_rewrite_src", - "action_params": { - "new_src": "10.0.1.10" - } - }, - { - "table": "MyIngress.ecmp_group", - "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.10", - 32 - ] - }, - "action_name": "MyIngress.set_ecmp_select", - "action_params": { - "ecmp_base": 1, - "ecmp_count": 2 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 0 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:01:01", - "nhop_ipv4": "10.0.1.1", - "port": 1 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 1 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:02:02", - "nhop_ipv4": "10.0.2.2", - "port": 2 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 2 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:03:03", - "nhop_ipv4": "10.0.3.3", - "port": 3 - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 1 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:01:00" - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 2 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:02:00" - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 3 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:03:00" - } - } - ] -} \ No newline at end of file + "target": "bmv2", + "p4info": "build/load_balance.p4.p4info.txt", + "bmv2_json": "build/load_balance.json", + "table_entries": [ + { + "table": "MyIngress.ecmp_group", + "default_action": true, + "action_name": "MyIngress.drop", + "action_params": {} + }, + { + "table": "MyIngress.ecmp_group", + "match": { + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] + }, + "action_name": "MyIngress.set_rewrite_src", + "action_params": { + "new_src": "10.0.1.10" + } + }, + { + "table": "MyIngress.ecmp_group", + "match": { + "hdr.ipv4.dstAddr": ["10.0.1.10", 32] + }, + "action_name": "MyIngress.set_ecmp_select", + "action_params": { + "ecmp_base": 1, + "ecmp_count": 2 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 0 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:01:01", + "nhop_ipv4": "10.0.1.1", + "port": 1 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 1 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:02:02", + "nhop_ipv4": "10.0.2.2", + "port": 2 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 2 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:03:03", + "nhop_ipv4": "10.0.3.3", + "port": 3 + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 1 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:01:00" + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 2 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:02:00" + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 3 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:03:00" + } + } + ] +} diff --git a/examples/host_containers/config/s2-runtime.json b/examples/host_containers/config/s2-runtime.json index 80e328d..12c2b4e 100644 --- a/examples/host_containers/config/s2-runtime.json +++ b/examples/host_containers/config/s2-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.2.2", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.2.2", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/host_containers/config/s3-runtime.json b/examples/host_containers/config/s3-runtime.json index 703ede5..e3cd0b4 100644 --- a/examples/host_containers/config/s3-runtime.json +++ b/examples/host_containers/config/s3-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.3.3", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.3.3", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/host_containers/config/s4-runtime.json b/examples/host_containers/config/s4-runtime.json index a165b6a..8986054 100644 --- a/examples/host_containers/config/s4-runtime.json +++ b/examples/host_containers/config/s4-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.4.4", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.4.4", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/process_migration/config/s1-runtime.json b/examples/process_migration/config/s1-runtime.json index 6fdf42e..733810a 100644 --- a/examples/process_migration/config/s1-runtime.json +++ b/examples/process_migration/config/s1-runtime.json @@ -1,106 +1,100 @@ { - "target": "bmv2", - "p4info": "build/load_balance.p4.p4info.txt", - "bmv2_json": "build/load_balance.json", - "table_entries": [ - { - "table": "MyIngress.ecmp_group", - "default_action": true, - "action_name": "MyIngress.drop", - "action_params": {} - }, - { - "table": "MyIngress.ecmp_group", - "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] - }, - "action_name": "MyIngress.set_rewrite_src", - "action_params": { - "new_src": "10.0.1.10" - } - }, - { - "table": "MyIngress.ecmp_group", - "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.10", - 32 - ] - }, - "action_name": "MyIngress.set_ecmp_select", - "action_params": { - "ecmp_base": 1, - "ecmp_count": 2 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 0 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:01:01", - "nhop_ipv4": "10.0.1.1", - "port": 1 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 1 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:02:02", - "nhop_ipv4": "10.0.2.2", - "port": 2 - } - }, - { - "table": "MyIngress.ecmp_nhop", - "match": { - "meta.ecmp_select": 2 - }, - "action_name": "MyIngress.set_nhop", - "action_params": { - "nhop_dmac": "08:00:00:00:03:03", - "nhop_ipv4": "10.0.3.3", - "port": 3 - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 1 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:01:00" - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 2 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:02:00" - } - }, - { - "table": "MyEgress.send_frame", - "match": { - "standard_metadata.egress_port": 3 - }, - "action_name": "MyEgress.rewrite_mac", - "action_params": { - "smac": "00:00:00:01:03:00" - } - } - ] -} \ No newline at end of file + "target": "bmv2", + "p4info": "build/load_balance.p4.p4info.txt", + "bmv2_json": "build/load_balance.json", + "table_entries": [ + { + "table": "MyIngress.ecmp_group", + "default_action": true, + "action_name": "MyIngress.drop", + "action_params": {} + }, + { + "table": "MyIngress.ecmp_group", + "match": { + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] + }, + "action_name": "MyIngress.set_rewrite_src", + "action_params": { + "new_src": "10.0.1.10" + } + }, + { + "table": "MyIngress.ecmp_group", + "match": { + "hdr.ipv4.dstAddr": ["10.0.1.10", 32] + }, + "action_name": "MyIngress.set_ecmp_select", + "action_params": { + "ecmp_base": 1, + "ecmp_count": 2 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 0 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:01:01", + "nhop_ipv4": "10.0.1.1", + "port": 1 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 1 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:02:02", + "nhop_ipv4": "10.0.2.2", + "port": 2 + } + }, + { + "table": "MyIngress.ecmp_nhop", + "match": { + "meta.ecmp_select": 2 + }, + "action_name": "MyIngress.set_nhop", + "action_params": { + "nhop_dmac": "08:00:00:00:03:03", + "nhop_ipv4": "10.0.3.3", + "port": 3 + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 1 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:01:00" + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 2 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:02:00" + } + }, + { + "table": "MyEgress.send_frame", + "match": { + "standard_metadata.egress_port": 3 + }, + "action_name": "MyEgress.rewrite_mac", + "action_params": { + "smac": "00:00:00:01:03:00" + } + } + ] +} diff --git a/examples/process_migration/config/s2-runtime.json b/examples/process_migration/config/s2-runtime.json index 80e328d..12c2b4e 100644 --- a/examples/process_migration/config/s2-runtime.json +++ b/examples/process_migration/config/s2-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.2.2", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.2.2", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/process_migration/config/s3-runtime.json b/examples/process_migration/config/s3-runtime.json index 703ede5..e3cd0b4 100644 --- a/examples/process_migration/config/s3-runtime.json +++ b/examples/process_migration/config/s3-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.3.3", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.3.3", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +} diff --git a/examples/process_migration/config/s4-runtime.json b/examples/process_migration/config/s4-runtime.json index a165b6a..8986054 100644 --- a/examples/process_migration/config/s4-runtime.json +++ b/examples/process_migration/config/s4-runtime.json @@ -12,10 +12,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.4.4", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.4.4", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -26,10 +23,7 @@ { "table": "MyIngress.ecmp_group", "match": { - "hdr.ipv4.dstAddr": [ - "10.0.1.1", - 32 - ] + "hdr.ipv4.dstAddr": ["10.0.1.1", 32] }, "action_name": "MyIngress.set_ecmp_select", "action_params": { @@ -82,4 +76,4 @@ } } ] -} \ No newline at end of file +}