P4-vSwitch / vagrant

PISCES Simulation Environment
30 stars 15 forks source link

Python file instead of .sh file? #3

Closed huniyaarif1 closed 7 years ago

huniyaarif1 commented 7 years ago

While working on P4Factory, python files were used to add flows to the table. This allowed greater flexibility in testing. Can we replace l2_switch.sh in l2_switch example with something similar to routing.py in https://github.com/p4lang/p4factory/blob/master/targets/basic_routing/tests/ptf-tests/routing.py ? Also, can we generate and sniff packets via scapy (python) instead of using pktgen?

I'm asking because I'm working on P4 and want to configure my code on PISCES without having to convert my python file with sh file for flow rules. Thank you.