* Added quality of service(QOS) via Differentiated services * Altered to classify network traffic in Ingress * Updated readme for QoS
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"target": "bmv2",
|
|
"p4info": "build/qos.p4.p4info.txt",
|
|
"bmv2_json": "build/qos.json",
|
|
"table_entries": [
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": ["10.0.2.2", 32]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:02:02",
|
|
"port": 2
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": ["10.0.2.22", 32]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:02:22",
|
|
"port": 1
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": ["10.0.1.0", 24]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:01:00",
|
|
"port": 3
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": ["10.0.3.0", 24]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:03:00",
|
|
"port": 4
|
|
}
|
|
}
|
|
]
|
|
}
|