niksu / pax

Framework for prototyping network elements
Apache License 2.0
4 stars 1 forks source link

update `examples/wiring.json` #18

Closed niksu closed 7 years ago

niksu commented 7 years ago

The default example invocation: sudo ./Bin/Pax.exe examples/wiring.json examples/Bin/Examples.dll currently doesn't work. I believe this is because the constructor arguments to the wiring (configuration) info for Nested_Chained_Test2 (referenced in examples/wiring.json) has not been updated to work with the latest version of the code. Every packet processor (e.g., hub, switch, ..., Nested_Chained_Test2) has a constructor with parameters. This summer we implemented a better way to pass these parameters in the .json file, but wiring.json has not beed updated to pass the right parameters to Nested_Chained_Test2. Until it's fixed, for an example that should work, try running: sudo ./Bin/Pax.exe examples/tallyer_wiring.json examples/Bin/Examples.dll

niksu commented 7 years ago

Fixed by https://github.com/niksu/pax/commit/db8f0f6914b5a0f7e923ba45bc14392de4dfcbb4 and https://github.com/niksu/pax/commit/e3d71d50a04a733ec2b93cc37328a10403d7da21. Thanks to @pietrobressana for pointing out the problem.