opennetworkinglab / ngsdn-tutorial

Hands-on tutorial to learn the building blocks of the Next-Gen SDN architecture
https://www.opennetworking.org/ng-sdn/
Apache License 2.0
321 stars 187 forks source link

[question] how to enable detailed logging? #86

Closed elhpavtat closed 3 years ago

elhpavtat commented 3 years ago

Hello!

I would like some advice I am trying to solve a problem with traffic going through the switch. To do this I would like to see a detailed log to see how the switch is parsing traffic and understand what the problem is. I read another issue and added the line "'-bmv2_log_level trace'," in stratum.py, then watched the log file /tmp/leaf1/stratum_bmv2.log The resulting log is not detailed enough, in my opinion, maybe there is some other way?

I apologise for piling up all the questions:

  1. Do I have the option of connecting to the CLI of the bmv2 switch?

  2. Previously I used L2BridgingComponent.java for L2 forwarding and in this case, I could use ONOS to check the number of packets hitting the IngressPipeImpl.l2_exact_table. However, when I created a new table, I was faced with the need to add new entries using P4Runtime sh, in this case, I cannot see the added entries in ONOS and consequently the matches. Is this the correct behaviour?

Thank you very much!