forked from p4lang/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3-runtime.json
46 lines (46 loc) · 1.01 KB
/
s3-runtime.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"target": "bmv2",
"p4info": "build/load_balance.p4info",
"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.3.3", 32]
},
"action_name": "MyIngress.set_ecmp_select",
"action_params": {
"ecmp_base": 0,
"ecmp_count": 1
}
},
{
"table": "MyIngress.ecmp_nhop",
"match": {
"meta.ecmp_select": 0
},
"action_name": "MyIngress.set_nhop",
"action_params": {
"nhop_dmac": "00:00:00:00:03:03",
"nhop_ipv4": "10.0.3.3",
"port" : 1
}
},
{
"table": "MyEgress.send_frame",
"match": {
"standard_metadata.egress_port": 1
},
"action_name": "MyEgress.rewrite_mac",
"action_params": {
"smac": "00:00:00:03:01:00"
}
}
]
}