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

'TableEntry' object has no attribute 'metadata' #44

Open
yhx-coder opened this issue Oct 12, 2022 · 0 comments
Open

'TableEntry' object has no attribute 'metadata' #44

yhx-coder opened this issue Oct 12, 2022 · 0 comments

Comments

@yhx-coder
Copy link

yhx-coder commented Oct 12, 2022

when I used SimpleSwitchP4RuntimeAPI.table_add() to insert some entries, an exception occurred in the p4runtime_API api.py _EntityBase._write() and said TableEntry object has no attribute metadata. The program is roughly the same as p4-learning/exercises/08-Simple_Routing/p4runtime/solution/routing-controller.py. The tables show below:

table ipv4_lpm {
    key = {
        hdr.ipv4.dstAddr: lpm;
    }
    actions = {
        ipv4_forward;
        drop;
        NoAction;
    }
    size = 1024;
    default_action = drop();
}
table l2_exact_table {
    key = {
        hdr.ethernet.dstAddr: exact;
    }
    actions = {
        set_egress_port;
        send_to_CPU;
        drop;
        NoAction;
    }
    default_action = NoAction;
}

i wonder what the metadata means. I find it in the class TableEntry . could someone help me? thanks a lot.

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

1 participant