[P4-dev] Error: Table has no action my_drop

Mihai Budiu mbudiu at vmware.com
Fri Jun 7 12:11:49 EDT 2019


You should also considering filing an issue with the p4-guide repository, since you have obtained all the code from there.

Mihai

From: P4-dev <p4-dev-bounces at lists.p4.org> On Behalf Of Harsh Gondaliya
Sent: Friday, June 7, 2019 1:47 AM
To: p4-dev at lists.p4.org
Subject: [P4-dev] Error: Table has no action my_drop

I used install-p4dev-p4runtime.sh script from https://github.com/jafingerhut/p4-guide<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjafingerhut%2Fp4-guide&data=02%7C01%7Cmbudiu%40vmware.com%7Cf30c4b1032544dd4b47108d6eb2d163d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C636954976229548450&sdata=bSNFloqLAd5XbW6wZxiuKRNzBbeyXvxubpvoBVBw9q8%3D&reserved=0> to build behavioral model, p4c compiler and simple_switch.

Then I compiled the demo1 program https://github.com/jafingerhut/p4-guide/tree/master/demo1<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjafingerhut%2Fp4-guide%2Ftree%2Fmaster%2Fdemo1&data=02%7C01%7Cmbudiu%40vmware.com%7Cf30c4b1032544dd4b47108d6eb2d163d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C636954976229548450&sdata=%2Fu2EtltcPXiJr6y33AbAFdjRix2qnoZsRjrLkYv6EB4%3D&reserved=0> and ran the simple_switch. Now, when I am trying to add table entries using simple_switch_CLI, it gives me these errors.
---------------
Control utility for runtime P4 table manipulation
RuntimeCmd: table_set_default ipv4_da_lpm my_drop
Error: Table ipv4_da_lpm has no action my_drop
RuntimeCmd: table_set_default mac_da my_drop
Error: Table mac_da has no action my_drop
RuntimeCmd: table_set_default send_frame my_drop
Error: Table send_frame has no action my_drop
RuntimeCmd:
------------------
I checked the demo1 p4 program and it does have a definition for my_drop action. Still, I am getting this error. I am aware of some changes that need to be made for mark_to_drop(stdmeta) function call (troubleshooting steps<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjafingerhut%2Fp4-guide%2Fblob%2Fmaster%2FREADME-troubleshooting.md%23compiler-gives-error-message-about-mark_to_drop&data=02%7C01%7Cmbudiu%40vmware.com%7Cf30c4b1032544dd4b47108d6eb2d163d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C636954976229558442&sdata=HKaJharAx59Fb%2FJM7y6afB68ItuiGV3Q6%2Fsa7WPiaDA%3D&reserved=0> Last topic, 2nd bullet point, 1st one doesn't work for me), but don't know exact steps to solve this.  Can I get some help as to how this error can be resolved?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20190607/2c0a25ff/attachment.html>


More information about the P4-dev mailing list