Create static mapping switch (basically L2)
This commit is contained in:
parent
480e6e1612
commit
186f9e36aa
1 changed files with 54 additions and 0 deletions
54
p4app/static-mapping.json
Normal file
54
p4app/static-mapping.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"program": "../p4src/static.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
|
||||
}
|
||||
}
|
||||
},
|
||||
"exec_scripts": [
|
||||
{
|
||||
"cmd": "../static-mapping.sh",
|
||||
"reboot_run": true
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue