# After the Onos connects to the p4 switch, there is a problem that the device is not online. This is the configuration file I wrote to the Onos

**URL:** <https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536>\
**Category:** Uncategorized\
**Created:** [November 17, 2022, 1:15pm UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536 "2022-11-17T13:15:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 17, 2022, 1:15pm UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/1 "2022-11-17T13:15:30Z")

</div>

![C2D6104A6AA509EBB0328B0D02247E6D](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/d12cdb860619d4607da45ae8e075e09626ca4a73.jpeg)  
 ![NRM@N9PH)76@3DE0AW8(`0U](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/9ea53de1f487a9195b0b1eac7b40936c2abf8a28.jpeg)

---

<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:35pm UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/2 "2022-11-17T13:35:20Z")

</div>

@lq1

there is a similar thread here, please take a look [ONOS+Stratum+P4 - #3 by DavideS](https://forum.p4.org/t/onos-stratum-p4/531/3)

Best  
Davide

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 18, 2022, 1:57am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/3 "2022-11-18T01:57:48Z")

</div>

Now this package “org.stratumproject.fabric.montara\_sde\_9\_7\_0” is compiled with maven, because I use a higher version of onos, only support bazel tool compilation, now I use bazel tool to build my own definition of APP, similar to this application “org.stratumproject.fabric.montara\_sde\_9\_7\_0”, However, the delivery was unsuccessful, and the error is the problem in the picture above.

---

<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 18, 2022, 7:09am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/4 "2022-11-18T07:09:52Z")

</div>

Hi @lq1

could you please share the onos logs? because there is displayed everything.

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 18, 2022, 8:02am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/5 "2022-11-18T08:02:55Z")

</div>

![c5aae5016a7de49f1c56975d04c79f7](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/8c8ade5f04c45f76b1a8763c261fcfd2384efe79.jpeg)

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 18, 2022, 8:15am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/6 "2022-11-18T08:15:02Z")

</div>

This is all the onos logs:

2022-11-17T23:30:39,531 | WARN | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Unable to build pipeconf at p4c-out/fabric-mlnx/spectrum/default/ because file is missing: spectrum.bin  
2022-11-17T23:30:39,792 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-bng (fingerprint=f4:e4:13:34:16:98:2c:0e)  
2022-11-17T23:30:39,792 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-full (fingerprint=32:d9:f1:6a:8a:71:e6:d0)  
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-int (fingerprint=fb:7f:78:48:5a:bc:cb:dc)  
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-spgw-int (fingerprint=4c:ea:33:c6:d2:e3:f9:ec)  
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-spgw (fingerprint=69:b9:43:4b:26:30:13:9d)  
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric (fingerprint=07:bf:76:0d:51:b4:37:20)  
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:30:39,795 | INFO | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:30:39,798 | INFO | features-3-thread-1 | CommandExtension | 54 - org.apache.karaf.shell.core - 4.2.14 | Registering commands for bundle org.onosproject.onos-pipelines-fabric-impl/3.0.0.SNAPSHOT  
2022-11-17T23:30:39,798 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:30:39,799 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.pipelines.fabric has been activated  
2022-11-17T23:30:45,440 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-apps-fwd/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:30:45,824 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-fwd/3.0.0-SNAPSHOT  
2022-11-17T23:30:45,826 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:30:45,826 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-fwd/3.0.0-SNAPSHOT  
2022-11-17T23:30:45,834 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:30:45,834 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-apps-fwd/3.0.0.SNAPSHOT  
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Packet-out only forwarding is disabled  
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Forwarding using OFPP\_TABLE port is disabled  
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. IPv6 forwarding is disabled  
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Match Dst MAC Only is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching Vlan ID is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 Addresses is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 DSCP and ECN is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 Addresses is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 FlowLabel is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching TCP/UDP fields is disabled  
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching ICMP (v4 and v6) fields is disabled  
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Ignore IPv4 multicast packets is disabled  
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. record metrics is disabled  
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Timeout is configured to 10 seconds  
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Priority is configured to 10  
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Inherit flow treatment is disabled  
2022-11-17T23:30:45,865 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:30:45,867 | INFO | features-3-thread-1 | CommandExtension | 54 - org.apache.karaf.shell.core - 4.2.14 | Registering commands for bundle org.onosproject.onos-apps-fwd/3.0.0.SNAPSHOT  
2022-11-17T23:30:45,867 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:30:45,868 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.fwd has been activated  
2022-11-17T23:30:46,112 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Packet-out only forwarding is disabled  
2022-11-17T23:30:46,112 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Forwarding using OFPP\_TABLE port is disabled  
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. IPv6 forwarding is disabled  
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Match Dst MAC Only is disabled  
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching Vlan ID is disabled  
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 Addresses is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 DSCP and ECN is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 Addresses is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 FlowLabel is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching TCP/UDP fields is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching ICMP (v4 and v6) fields is disabled  
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Ignore IPv4 multicast packets is disabled  
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. record metrics is disabled  
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Timeout is configured to 10 seconds  
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Priority is configured to 10  
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Inherit flow treatment is disabled  
2022-11-17T23:31:02,965 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-gnmi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:03,267 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnmi/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,267 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:03,268 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnmi/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,278 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:03,278 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-gnmi/3.0.0.SNAPSHOT  
2022-11-17T23:31:03,284 | INFO | features-3-thread-1 | GnmiDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:03,284 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:03,286 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.gnmi has been activated  
2022-11-17T23:31:03,290 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-protocols-gnoi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-api/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-ctl/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-stub/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,566 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:03,566 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-api/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,567 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-ctl/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,568 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-stub/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,576 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:03,576 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-stub/3.0.0.SNAPSHOT  
2022-11-17T23:31:03,577 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-api/3.0.0.SNAPSHOT  
2022-11-17T23:31:03,578 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-ctl/3.0.0.SNAPSHOT  
2022-11-17T23:31:03,607 | INFO | features-3-thread-1 | GnoiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:03,608 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:03,609 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.protocols.gnoi has been activated  
2022-11-17T23:31:03,612 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-gnoi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnoi/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,899 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:03,899 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnoi/3.0.0-SNAPSHOT  
2022-11-17T23:31:03,908 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:03,908 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-gnoi/3.0.0.SNAPSHOT  
2022-11-17T23:31:03,938 | INFO | features-3-thread-1 | GnoiDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:03,938 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:03,940 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.gnoi has been activated  
2022-11-17T23:31:03,955 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-stratum/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:04,280 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-stratum/3.0.0-SNAPSHOT  
2022-11-17T23:31:04,280 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:04,281 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-stratum/3.0.0-SNAPSHOT  
2022-11-17T23:31:04,289 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:04,289 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-stratum/3.0.0.SNAPSHOT  
2022-11-17T23:31:04,319 | INFO | features-3-thread-1 | StratumDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:04,320 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:04,322 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.stratum has been activated  
2022-11-17T23:31:04,330 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-barefoot/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-barefoot/3.0.0-SNAPSHOT  
2022-11-17T23:31:04,635 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:04,635 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-barefoot/3.0.0-SNAPSHOT  
2022-11-17T23:31:04,643 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:04,643 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-barefoot/3.0.0.SNAPSHOT  
2022-11-17T23:31:04,672 | INFO | features-3-thread-1 | BarefootDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:04,673 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:04,674 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.barefoot has been activated  
2022-11-17T23:31:35,331 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-apps-p4\_connect-pipeconf/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]  
2022-11-17T23:31:35,670 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:  
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root  
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:  
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-p4\_connect-pipeconf/3.0.0-SNAPSHOT  
2022-11-17T23:31:35,672 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:  
2022-11-17T23:31:35,672 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-p4\_connect-pipeconf/3.0.0-SNAPSHOT  
2022-11-17T23:31:35,681 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:  
2022-11-17T23:31:35,682 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-apps-p4\_connect-pipeconf/3.0.0.SNAPSHOT  
2022-11-17T23:31:35,685 | INFO | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4\_connect-pipeconf - 3.0.0.SNAPSHOT | @@@@@@@#$$$$$$$$%%%%%%%%^^^^^^^^^^^  
2022-11-17T23:31:35,685 | ERROR | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4\_connect-pipeconf - 3.0.0.SNAPSHOT | @##########################%%%%%%%%%%%%  
2022-11-17T23:31:35,686 | WARN | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4\_connect-pipeconf - 3.0.0.SNAPSHOT | #$%#@%#@$%#$%#@^$%^$%^@!#$@#%&%^&%$^&%$  
2022-11-17T23:31:35,689 | INFO | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4\_connect-pipeconf - 3.0.0.SNAPSHOT | Started  
2022-11-17T23:31:35,690 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.  
2022-11-17T23:31:35,690 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.fabric.tofino has been activated  
2022-11-17T23:33:14,135 | INFO | onos-gdp-0 | GrpcChannelControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating new gRPC channel grpc://192.168.17.124:28000?device\_id=1…  
2022-11-17T23:33:14,185 | INFO | onos-gdp-0 | P4RuntimeControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating P4Runtime client for device:openmesh-switch…  
2022-11-17T23:33:14,192 | INFO | onos-gdp-0 | GnmiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating gNMI client for device:openmesh-switch…  
2022-11-17T23:33:14,240 | INFO | onos-gdp-0 | GnoiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating gNOI client for device:openmesh-switch…  
2022-11-17T23:33:14,245 | WARN | onos-gdp-0 | GossipDeviceStore | 196 - org.onosproject.onos-core-dist - 3.0.0.SNAPSHOT | Device device:openmesh-switch does not exist in store  
2022-11-17T23:33:14,250 | INFO | onos-gdp-0 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Local role is MASTER for device:openmesh-switch  
2022-11-17T23:33:14,253 | WARN | onos-event-dispatch-default0 | ModelCache | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | DeviceID device:openmesh-switch not found as a UiDevice  
2022-11-17T23:33:14,255 | WARN | onos-event-dispatch-default0 | ModelCache | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | DeviceID device:openmesh-switch not found as a UiDevice  
2022-11-17T23:33:14,256 | INFO | onos-gdp-0 | GeneralDeviceProvider | 229 - org.onosproject.onos-providers-general-device - 3.0.0.SNAPSHOT | Notifying role MASTER (preference 0) for term 1 to device:openmesh-switch  
2022-11-17T23:33:14,259 | INFO | onos-gdp-0 | StreamClientImpl | 231 - org.onosproject.onos-protocols-p4runtime-ctl - 3.0.0.SNAPSHOT | Setting mastership on device:openmesh-switch… master=true, newElectionId=20, masterElectionId=null, sessionOpen=false  
2022-11-17T23:33:14,269 | INFO | onos-event-dispatch-topology0 | DeviceFlowTable | 196 - org.onosproject.onos-core-dist - 3.0.0.SNAPSHOT | Activating term 1 for device device:openmesh-switch  
2022-11-17T23:33:14,284 | INFO | onos-topo-build-1 | TopologyManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Topology DefaultTopology{time=21634551595911, creationTime=1668756794283, computeCost=83784, clusters=0, devices=0, links=0} changed  
2022-11-17T23:33:14,291 | WARN | MeterDriverProvider-0 | P4RuntimeMeterProgrammable | 225 - org.onosproject.onos-protocols-grpc-utils - 3.0.0.SNAPSHOT | Missing pipeconf for device:openmesh-switch, cannot perform getMeterFeatures()  
2022-11-17T23:33:14,311 | INFO | onos-gdp-0 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Device device:openmesh-switch registered  
2022-11-17T23:33:14,377 | INFO | onos-gdp-3 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Role has been acknowledged for device device:openmesh-switch  
2022-11-17T23:33:34,878 | INFO | qtp1944491263-135 | UiSharedTopologyModel | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | Registering topology session {UiTopoSession for user }  
2022-11-17T23:33:34,941 | WARN | qtp1944491263-135 | Topo2OverlayCache | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | added overlay: UiTopo2Overlay{id=“traffic-2-overlay”, class=“Traffic2Overlay”}  
2022-11-17T23:33:34,949 | INFO | qtp1944491263-135 | UiWebSocket | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | GUI client connected – user   
2022-11-17T23:33:34,953 | INFO | qtp1944491263-559 | UiWebSocket | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | Session token authenticated  
2022-11-17T23:33:35,034 | WARN | qtp1944491263-558 | UiWebSocket | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | No GUI message handler for type alarmTopovDisplayStart  
2022-11-17T23:33:40,484 | WARN | qtp1944491263-558 | UiWebSocket | 202 - org.onosproject.\_onos-gui2-base-jar - 3.0.0.SNAPSHOT | No GUI message handler for type alarmTopovDisplayStop  
2022-11-17T23:41:55,165 | WARN | sshd-SshServer1579f084-nio2-thread-2 | ServerSessionImpl | 65 - org.apache.sshd.osgi - 2.5.1 | exceptionCaught(ServerSessionImpl[onos@/127.0.0.1:42944])[state=Opened] InterruptedByTimeoutException: null

---

<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 18, 2022, 9:37am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/7 "2022-11-18T09:37:56Z")

</div>

Hi,

Cold you specify the command that you run for strating Stratum on the switch? I suppose that you have started the stratum, barefoot applications on ONOS.  
The driver in the json , used for de discovery od the device should be `"driver": "stratum-tofino"`.

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 18, 2022, 9:54am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/8 "2022-11-18T09:54:11Z")

</div>

Hi,

1.The command that run for strating Stratum on the switch is

cd bf-sde-9.3.1  
source set\_sde.bash  
. ./set\_sde.bash  
./install/bin/bf\_kdrv\_mod\_load $SDE\_INSTALL /  
$SDE\_INSTALL/bin/dma\_setup.sh  
start-stratum.sh --enable\_onlp=false

2.In the onos cli,I only find the device driver “stratum”，no such driver “stratum-tofino” ,so the driver in the json write is “stratum”. when I write the json, I’m also confused about this driver"stratum-tofino" .

---

<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 18, 2022, 10:02am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/9 "2022-11-18T10:02:50Z")

</div>

Hi,

1. you are using SDE 9.3.1 while your pipeline seems compiled for the SDE 9.0.0.
2. I don’t know the content of the script `start.stratum.sh` but in my case i run stratum version 22.03:  
`sudo stratum_bfrt -bf_sde_install /home/tofino/SDE-9.7.0/bf-sde-9.7.0/install -bf_switchd_cfg /usr/share/stratum/tofino_skip_p4.conf -bf_switchd_background=false -enable_onlp=false -chassis_config_file ./chassis_config.pb.txt -experimental_enable_p4runtime_translation -incompatible_enable_bfrt_legacy_bytestring_responses`  
Morover, by default the grpc control port exposed by stratum should be 9559. Did you check the version compatibility among stratum version and the sde that you are running? [Releases · stratum/stratum · GitHub](https://github.com/stratum/stratum/releases)

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 19, 2022, 2:23pm UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/10 "2022-11-19T14:23:44Z")

</div>

Hi,  
When I use SDE 9.3.1, it is also the same error. Should it not be a problem in this regard, but may it be a problem in other aspects?

---

<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 19, 2022, 2:54pm UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/11 "2022-11-19T14:54:03Z")

</div>

Hi,

Could be tha you may have errors at several levels:

- software versioning stratum with SDE

- Maybe you didn’t developed properly you ONOS application, you may try to install fabric-tna([GitHub - stratum/fabric-tna: The SD-Fabric data plane](https://github.com/stratum/fabric-tna)) or this app that i developed tha simply allow to use Reactive Forwarding ([GitHub - Dscano/Basic-tna: This application allows ONOS to control the basic P4 pipeline, deployed for Tofino switch, via the ONOS application reactive forwarding and/or installation of custom flow rules via ONOS REST API .](https://github.com/Dscano/Basic-tna)) on a tofino switch with stratum.

In theory if you are not able to enstablish a connection to the grpc server on your swetch you should see any connection and errors appears periodically in the ONOS/stratum logs. While if you have some issue with pushing the pipeline you should see errors in the logs from onos/stratum.

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 20, 2022, 9:11am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/12 "2022-11-20T09:11:33Z")

</div>

Hi,

Can I use the code package you sent to compile it into an .oar file using “Maven” or “bazle” to connect to the switch?

---

<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 20, 2022, 9:55am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/13 "2022-11-20T09:55:22Z")

</div>

Hi,

yes, you can. Those programs are developed according to the ONOS “develop workflow”.

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 21, 2022, 2:22am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/14 "2022-11-21T02:22:05Z")

</div>

The image below is all ONOS drivers after my startup package “GitHub-Dscano/Basic-tna”, and I wonder why there is no “stratum-tofino” driver in the driver.

 ![6137c2b8ee29945753cc8b7710ffd25](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/bcf8c53cbb3e0c94766c65b2c60156e5d4cdb962.jpeg)

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 21, 2022, 2:22am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/15 "2022-11-21T02:22:44Z")

</div>

![58e6cce46022146054012e584cb7117](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/f0eaae2afd8d2899d929a244fc4b6a0ec3237c8b.jpeg)

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 21, 2022, 2:24am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/16 "2022-11-21T02:24:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 21, 2022, 2:25am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/17 "2022-11-21T02:25:18Z")

</div>

![7bd88bd7ede872d3c5b99a6bb06cd3e](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/fe4a1c169936c2254df54e6c54292b9f3bb6fa46.jpeg)

---

<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:10am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/18 "2022-11-21T06:10:19Z")

</div>

@lq1 please try to send compact messages, the stratum driver is ok.  
Why did you activate so many apps?, more in detail you activate also all the apps related to control optical devices and also the `pipelines.fabric`.  
Please apply a step by step approach for your troubleshooting.

---

<div class="post-metadata">

**Author:** ![lq1](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lq1](https://forum.p4.org/u/lq1)\
**Post date:** [November 21, 2022, 8:15am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/19 "2022-11-21T08:15:12Z")

</div>

hi,  
The previous reply just showed you all the driver information of ONOS, the following picture is the driver information I started myself, I want to know the “driver” in the “tofino-netcfg.json” configuration file you wrote: “stratum-tofino”, I can’t find it in the ONOS driver.

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

---

<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, 8:25am UTC](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536/20 "2022-11-21T08:25:39Z")

</div>

Hi @lq1,

I checked and `stratum-tofino` is correct, is just a matter of driver naming. The `stratum-driver` is enabled by the activation of barefoot driver app . As you can see is an “extension” of barefoot driver. [onos/barefoot-drivers.xml at 852081866f6a18dbdc87c2480ecb942f46575cca · opennetworkinglab/onos · GitHub](https://github.com/opennetworkinglab/onos/blob/852081866f6a18dbdc87c2480ecb942f46575cca/drivers/barefoot/src/main/resources/barefoot-drivers.xml)

[Next page](https://forum.p4.org/t/after-the-onos-connects-to-the-p4-switch-there-is-a-problem-that-the-device-is-not-online-this-is-the-configuration-file-i-wrote-to-the-onos/536.md?page=2)
