forked from p4lang/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s1-runtime.json
68 lines (68 loc) · 1.51 KB
/
s1-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"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.0.1", 32]
},
"action_name": "MyIngress.set_ecmp_select",
"action_params": {
"ecmp_base": 0,
"ecmp_count": 2
}
},
{
"table": "MyIngress.ecmp_nhop",
"match": {
"meta.ecmp_select": 0
},
"action_name": "MyIngress.set_nhop",
"action_params": {
"nhop_dmac": "00:00:00:00:01:02",
"nhop_ipv4": "10.0.2.2",
"port" : 2
}
},
{
"table": "MyIngress.ecmp_nhop",
"match": {
"meta.ecmp_select": 1
},
"action_name": "MyIngress.set_nhop",
"action_params": {
"nhop_dmac": "00:00:00:00:01:03",
"nhop_ipv4": "10.0.3.3",
"port" : 3
}
},
{
"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"
}
}
]
}