p4lang / tutorials

P4 language tutorials
Apache License 2.0
1.31k stars 875 forks source link

Problem initial run Load Balancer Tutorial #621

Closed Selfie21 closed 3 weeks ago

Selfie21 commented 3 weeks ago

Just wanted to note that when initially running the "Load Balancer" tutorial leads to the following errors and termination of the make command:

load_balance.p4(114): [--Wwarn=unused] warning: Table ecmp_group is not used; removing
    table ecmp_group {

raise AttributeError("Could not find %r of type %s" % (name, entity_type))
AttributeError: Could not find 'MyIngress.ecmp_group' of type tables

This is easily fixed by completing the tutorial, but it was confusing (especially if you are new to P4), since you would expect the program to successfully run.

Edit: I see that this issue has not only occurred to me, i create a pull request to align the code with the actual readme

Selfie21 commented 3 weeks ago

Fixed this error in Pull Request 622