add test json file for bmv2
This commit is contained in:
parent
a69c4060e2
commit
ff383e3b08
3 changed files with 54 additions and 1 deletions
|
@ -4971,6 +4971,11 @@ else:
|
|||
- Checksums match, but we only update it using
|
||||
HashAlgorithm.csum16
|
||||
|
||||
*** 2019-07-10:
|
||||
To be finished today:
|
||||
- delta on bmv2
|
||||
- general compile on netpfga
|
||||
|
||||
** References / Follow up
|
||||
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
||||
*** RFC 792 ICMP https://tools.ietf.org/html/rfc792
|
||||
|
|
48
p4app/test.json
Normal file
48
p4app/test.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"program": "../p4src/checksum_diff.p4",
|
||||
"switch": "simple_switch",
|
||||
"compiler": "p4c",
|
||||
"options": "--target bmv2 --arch v1model --std p4-16",
|
||||
"switch_cli": "simple_switch_CLI",
|
||||
"cli": true,
|
||||
"pcap_dump": true,
|
||||
"enable_log": true,
|
||||
"topo_module": {
|
||||
"file_path": "",
|
||||
"module_name": "p4utils.mininetlib.apptopo",
|
||||
"object_name": "AppTopoStrategies"
|
||||
},
|
||||
"controller_module": null,
|
||||
"topodb_module": {
|
||||
"file_path": "",
|
||||
"module_name": "p4utils.utils.topology",
|
||||
"object_name": "Topology"
|
||||
},
|
||||
"mininet_module": {
|
||||
"file_path": "",
|
||||
"module_name": "p4utils.mininetlib.p4net",
|
||||
"object_name": "P4Mininet"
|
||||
},
|
||||
"topology": {
|
||||
"assignment_strategy": "l2",
|
||||
"auto_arp_tables": false,
|
||||
"links": [["h1", "s1"], ["h2", "s1"], ["h3", "s1"], ["h4","s1"]],
|
||||
"hosts": {
|
||||
"h1": {
|
||||
},
|
||||
"h2": {
|
||||
}
|
||||
,
|
||||
"h3": {
|
||||
}
|
||||
,
|
||||
"h4": {
|
||||
}
|
||||
},
|
||||
"switches": {
|
||||
"s1": {
|
||||
"cpu_port" : true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -128,6 +128,7 @@ control MyDeparser(packet_out packet, in headers hdr) {
|
|||
}
|
||||
}
|
||||
|
||||
// OK-UNTIL-HERE
|
||||
|
||||
/*************************************************************************
|
||||
************** I N G R E S S P R O C E S S I N G *******************
|
||||
|
@ -772,7 +773,6 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
|||
*************************************************************************/
|
||||
|
||||
|
||||
|
||||
V1Switch(
|
||||
MyParser(),
|
||||
MyVerifyChecksum(),
|
||||
|
|
Loading…
Reference in a new issue