# ONOS+Stratum+P4

**URL:** https://forum.p4.org/t/onos-stratum-p4/531
**Category:** Uncategorized
**Created:** [November 17, 2022, 9:26am UTC](https://forum.p4.org/t/onos-stratum-p4/531 "2022-11-17T09:26:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![guxiaofei](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@guxiaofei](https://forum.p4.org/u/guxiaofei)
#### Post date: [November 17, 2022, 9:26am UTC](https://forum.p4.org/t/onos-stratum-p4/531/1 "2022-11-17T09:26:07Z")

</div>

Hello,ereryone  
Now, I am working on the connection of ONOS+Stratum+P4。Firstly，I import the ONOS source code into IntelliJ IDEA,In the apps directory, I created my own app, then used bazel to compile and run it, and generated a package with the suffix .oar。Secondly，I installed this app in ONOS and activated it，At the same time, I started running Stratum on the P4 switch(Wedge 100BF-barefoot tofino),Thirdly,I wrote the netcfg.json file and sent it to ONOS，In the ONOS CLI, it is found that the device is false.The following is the code of netcfg.json and the picture of the device situation：  
1.  
{  
“devices”: {  
“device:OpenMesh-switch”: {  
“basic”: {  
“managementAddress”: “grpc://192.168.17.124:28000?device\_id=1”,  
“driver”: “stratum”,  
“pipeconf”: “org.onosproject.fabric.tofino”  
}  
}  
}  
}  
2.

 ![928d32f97c6e520ba0b81f6ae3cacbf](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/f9cc6df7c7f2c2d473971ef818b3bf3dd0a7d4de.jpeg)

I don’t know what went wrong, thank you all for your answers！

---

<div class="post-metadata">

### Author: ![andyfingerhut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/andyfingerhut/32/17_2.png) [@andyfingerhut](https://forum.p4.org/u/andyfingerhut)
#### Post date: [November 17, 2022, 1:17pm UTC](https://forum.p4.org/t/onos-stratum-p4/531/2 "2022-11-17T13:17:24Z")

</div>

I have little knowledge of ONOS, so hopefully someone else can give a more detailed answer if they know. I noticed the Tofino aspect of your question, and it is not clear to me if your issue is Tofino-specific. If it is, I wanted to point out these other sources of Tofino-specific information: [Tofino, TNA, and P4Studio questions](https://forum.p4.org/t/tofino-tna-and-p4studio-questions/504)

---

<div class="post-metadata">

### Author: ![DavideS](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/davides/32/120_2.png) [@DavideS](https://forum.p4.org/u/DavideS)
#### Post date: [November 17, 2022, 1:33pm UTC](https://forum.p4.org/t/onos-stratum-p4/531/3 "2022-11-17T13:33:06Z")

</div>

Hi @guxiaofei,

- are you loaded the fabric-tna pipeline in onos?

- because at first singth “pipeconf”: “org.onosproject.fabric.tofino” seems a strange app to me. I mean, I’m not aware of a pipeline called like that. This should be the correct pipeline name org.stratumproject.fabric.montara\_sde\_9\_7\_0 and is referred to this project [GitHub - stratum/fabric-tna: The SD-Fabric data plane](https://github.com/stratum/fabric-tna)

Best  
Davide

---

<div class="post-metadata">

### Author: ![guxiaofei](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@guxiaofei](https://forum.p4.org/u/guxiaofei)
#### Post date: [November 21, 2022, 3:03am UTC](https://forum.p4.org/t/onos-stratum-p4/531/4 "2022-11-21T03:03:03Z")

</div>

There is another problem, the driver of the app is “stratum-tofino”, but there is only driver"stratum" in ONOS，which is very strange！

---

<div class="post-metadata">

### Author: ![DavideS](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/davides/32/120_2.png) [@DavideS](https://forum.p4.org/u/DavideS)
#### Post date: [November 21, 2022, 6:12am UTC](https://forum.p4.org/t/onos-stratum-p4/531/5 "2022-11-21T06:12:00Z")

</div>

Hi @guxiaofei, stratum app is correct I checked. If you activate the barefoot driver automatically they activate the stratum app.
