* Update user-bootstrap to use latest version (#251) * p4c tests are failing in latest version. So, let's skip it during vagrant provisioning * Update tutorial to use latest version of P4 tools Modify switch.py to handle setting default_action Use --p4runtime-files instead of deprecated --p4runtime-file and --p4runtime-format flags Provide standard_metadata for mark_to_drop * Fix path for ECN exercise
69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|