# Error when use simple\_switch

**URL:** <https://forum.p4.org/t/error-when-use-simple-switch/879>\
**Category:** Uncategorized\
**Created:** [July 5, 2023, 3:23am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879 "2023-07-05T03:23:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![heaij](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@heaij](https://forum.p4.org/u/heaij)\
**Post date:** [July 5, 2023, 3:23am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/1 "2023-07-05T03:23:24Z")

</div>

An error occurs when loading instructions to simple\_switch，specifically these two instructions：'port\_add r1-eth1 1 ；port\_add r1-eth2 2.I don’t know why. Any help is appreciated.  
Error message：  
RuntimeCmd: Invalid device manager operation (ERROR)  
RuntimeCmd: Invalid device manager operation (ERROR)

---

<div class="post-metadata">

**Author:** ![ederollora](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/ederollora/32/21_2.png) [@ederollora](https://forum.p4.org/u/ederollora)\
**Post date:** [July 5, 2023, 7:07am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/2 "2023-07-05T07:07:28Z")

</div>

Hi,

Please upload anything that you ask about to your Github account such as P4 programs, P4Runtime rules, etc. I cannot help if I cannot see what you did and which rules you have used (exactly). Sometimes it is handy to upload all your stuff in one go (like the whole tutotial folder) to Github.

EDIT: If anyone else feels lucky please help to this person 🙂

Cheers,

---

<div class="post-metadata">

**Author:** ![heaij](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@heaij](https://forum.p4.org/u/heaij)\
**Post date:** [July 5, 2023, 8:13am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/3 "2023-07-05T08:13:11Z")

</div>

Thank you for your reply. Actually, I want to reproduce this project  
https:github.com/ralfkundel/p4-codel . This issue occurred when I ran the run.sh script. I wonder if the information I have added is enough.Please bear with me if my question is very stupid, I am a novice

---

<div class="post-metadata">

**Author:** ![ederollora](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/ederollora/32/21_2.png) [@ederollora](https://forum.p4.org/u/ederollora)\
**Post date:** [July 5, 2023, 8:42am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/4 "2023-07-05T08:42:28Z")

</div>

> [@heaij](#):
>
> https:github.com/ralfkundel/p4-codel

Oh do not worry, back in time everyone one was a novice. We help you here, do not worry 🙂

Is that link yours or do you have your own link?

Cheers,

---

<div class="post-metadata">

**Author:** ![heaij](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@heaij](https://forum.p4.org/u/heaij)\
**Post date:** [July 5, 2023, 9:03am UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/5 "2023-07-05T09:03:36Z")

</div>

No, this is not my own link. I read an article and I tried to reproduce the content of the article and this link was given in the article.I just loaded the content of the link into my own P4 environment .

---

<div class="post-metadata">

**Author:** ![ederollora](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/ederollora/32/21_2.png) [@ederollora](https://forum.p4.org/u/ederollora)\
**Post date:** [July 5, 2023, 1:06pm UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/6 "2023-07-05T13:06:40Z")

</div>

> [@heaij](#):
>
> https:github.com/ralfkundel/p4-codel

I took a very fast look. This seems to be targeting the old P4\_14 code, even if the compiler still supported some P4\_16 features. This might not be the best approach at this point because a lot of the required tools have changed (requirements, python2.7, etc.).

Are you using the P4 VM they provide? Else it might be difficult to build your own VM from scratch.

Cheers,

---

<div class="post-metadata">

**Author:** ![heaij](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@heaij](https://forum.p4.org/u/heaij)\
**Post date:** [July 5, 2023, 1:52pm UTC](https://forum.p4.org/t/error-when-use-simple-switch/879/7 "2023-07-05T13:52:09Z")

</div>

Is this the case? Okay, then I will check the relevant environment again, because I did not use their VM thank you for your reply.
