94 lines
No EOL
1.9 KiB
JSON
94 lines
No EOL
1.9 KiB
JSON
{
|
|
"target": "bmv2",
|
|
"p4info": "build/forwarding.p4.p4info.txt",
|
|
"bmv2_json": "build/forwarding.json",
|
|
"table_entries": [
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"default_action": true,
|
|
"action_name": "MyIngress.drop",
|
|
"action_params": {}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": [
|
|
"10.0.1.1",
|
|
32
|
|
]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:01:11",
|
|
"port": 1
|
|
}
|
|
},
|
|
{
|
|
"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:22",
|
|
"port": 2
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": [
|
|
"10.0.3.3",
|
|
32
|
|
]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:03:00",
|
|
"port": 3
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": [
|
|
"10.0.4.4",
|
|
32
|
|
]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:04:00",
|
|
"port": 4
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": [
|
|
"10.0.0.0",
|
|
16
|
|
]
|
|
},
|
|
"action_name": "MyIngress.ipv4_forward",
|
|
"action_params": {
|
|
"dstAddr": "08:00:00:00:03:00",
|
|
"port": 3
|
|
}
|
|
},
|
|
{
|
|
"table": "MyIngress.ipv4_lpm",
|
|
"match": {
|
|
"hdr.ipv4.dstAddr": [
|
|
"10.0.3.0",
|
|
24
|
|
]
|
|
},
|
|
"action_name": "MyIngress.drop",
|
|
"action_params": {}
|
|
}
|
|
]
|
|
} |