Skip to content

Error during runtime based onos meter example #533

@YangBaylee

Description

@YangBaylee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions