Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during runtime based onos meter example #533

Open
YangBaylee opened this issue Jun 5, 2023 · 2 comments
Open

Error during runtime based onos meter example #533

YangBaylee opened this issue Jun 5, 2023 · 2 comments

Comments

@YangBaylee
Copy link

Hello, everyone,as a beginner in this field and I would like to consult you experts about a question.I try to implement an onos meter example based on p4 meter in the dataplane. I read the repo of fabric-tna, and then according to the code of fabric-tna, I implemented a simple p4 program and a control plane program for onos to deliver meter configuration, but onos reported an exception during the operation, as shown in the figure.

runtime_error

I checked the code carefully again. I found that the difference between my code and fabric-tna is that my code doesn't add the UPFProgrammable.class and its related implementation in pipeconf. I don’t know if it can solve the issue in my code if i add this part.

     I also read the repo of up4, the meter operation in it is very different from fabric-tna. It implements a MeterListener, and sends MeterRequest when MeterEvent is processed. I don't know when will invoke the MeterListener event ? And when the Meter event is triggered, who configures the meter configuration?

basic.p4.txt
Forwarding.java.txt

@Dscano
Copy link

Dscano commented Jun 5, 2023

Hi @YangBaylee

From what I'm undestanding you haven't implemented the pieconf files needed to handle the pipeline that you have installed in the switches, you have only defined the Forwarding behaviour. So you have also to create this files (https://github.com/stratum/fabric-tna/blob/main/src/main/java/org/stratumproject/fabric/tna/PipeconfLoader.java,https://github.com/stratum/fabric-tna/tree/main/src/main/java/org/stratumproject/fabric/tna/behaviour/pipeliner)

Best,
Davide

@YangBaylee
Copy link
Author

Thank you, Davide🙂!

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

No branches or pull requests

2 participants