Skip to content

Revert recent switch.py changes#688

Merged
jafingerhut merged 33 commits intop4lang:masterfrom
jafingerhut:revert-recent-switch.py-changes
May 13, 2025
Merged

Revert recent switch.py changes#688
jafingerhut merged 33 commits intop4lang:masterfrom
jafingerhut:revert-recent-switch.py-changes

Conversation

@jafingerhut
Copy link
Copy Markdown
Collaborator

No description provided.

jafingerhut and others added 30 commits October 16, 2024 21:44
This may help avoid new users being confused that they must follow
those instructions.

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
They cause Python exceptions to be raised when initializing other
exercises, e.g. basic and ecn at least.

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
@jafingerhut
Copy link
Copy Markdown
Collaborator Author

@Dscano Instead of reverting all of the changes you made in this recent PR: #684

I am only reverting the changes made to file utils/p4runtime_lib/switch.py, since those are the only changes that seem to affect the behavior of running other exercises. Unfortunately this probably breaks some or all of the current functionality of the flowcache exercise -- I have not checked that. Hopefully we can find similar but different changes to switch.py that avoid raising exceptions for existing exercises, yet enable flowcache to work as desired.

@jafingerhut jafingerhut merged commit c8f7f4e into p4lang:master May 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant