How to install stratum on a tofino switch?

132 views
Skip to first unread message

luin...@gmail.com

unread,
Jul 13, 2020, 10:39:53 PM7/13/20
to P4 brigade
Hi,

To install stratum on a tofino switch, I tired to follow the README.md from

But I cannot find stratum_bf_deb.deb and start-stratum.sh.
How can I get these files or can you give me an explanation that using alternative method except using docker?

Thanks

Yi Tseng

unread,
Jul 13, 2020, 10:45:23 PM7/13/20
to luin...@gmail.com, P4 brigade
Hello,

Currently, we don't distribute the Debian package. But we might provide it in the future.

You need to build the package manually now:

Yi


--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-p4+...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/513ea399-37e5-4310-81f9-c1b465a4a0b1o%40onosproject.org.


--
Yi Tseng
Member of Technical Staff
Open Networking Foundation

luin...@gmail.com

unread,
Jul 15, 2020, 11:18:28 PM7/15/20
to P4 brigade, luin...@gmail.com
Thanks for helping me. I finally install the stratum on my tofino switches. 

I think it is a miner thing, but he example link in the follow path is breaks.
Buillding-stratum page ->Installing the SDE -> Board support package (BSP) or ONLPv2? -> ONLPv2 -> 'see this example for the Wedge 100bf-32x'

If you fix this, can you give me that example port-mapping file?
I want to check my port mapping file.

Thanks

2020년 7월 14일 화요일 오전 11시 45분 23초 UTC+9, Yi Tseng 님의 말:
Hello,

Currently, we don't distribute the Debian package. But we might provide it in the future.

You need to build the package manually now:

Yi


On Mon, Jul 13, 2020 at 7:39 PM <luin...@gmail.com> wrote:
Hi,

To install stratum on a tofino switch, I tired to follow the README.md from

But I cannot find stratum_bf_deb.deb and start-stratum.sh.
How can I get these files or can you give me an explanation that using alternative method except using docker?

Thanks

--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to briga...@onosproject.org.

Yi Tseng

unread,
Jul 17, 2020, 12:43:46 AM7/17/20
to luin...@gmail.com, P4 brigade
Hi 

I checked the link and it seems works. Here is the link of the port map of wedge100-bf32x

Yi

To unsubscribe from this group and stop receiving emails from it, send an email to brigade-p4+...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/9e323815-0ea1-4cbb-a880-7031783ae616o%40onosproject.org.

David Lake

unread,
Jul 18, 2020, 11:21:16 AM7/18/20
to Yi Tseng, luin...@gmail.com, P4 brigade

I’m having the same problem.

 

This is the port-mapping for the lanes but I don’t understand how to configure the ports?

 

What is the reference between the lane configuration and port?  Can you point me to the documentation and config guides?

 

How to a configure a port on a lane to be a routed port in VLAN 100 (for example).

For example, I have this:

 

{

  "devices": {

    "device:my-tofino-switch": {

      "basic": {

        "managementAddress": "grpc://10.5.23.21:28000?device_id=1",

        "driver": "stratum-tofino",

        "pipeconf": "org.opencord.fabric.tofino.montara_sde_9_0_0"

      }

    }

  }

 

… and this…

 

{

 

"connector": 1,

 

"device_id": 0,

 

"mac_block": 23,

 

"media_type": "copper",

 

"lane0": {

 

"mac_ch": 0,

 

"tx_lane": 2,

 

"tx_pn_swap": 1,

 

"rx_lane": 2,

 

"rx_pn_swap": 1,

 

"serdes_params": {

 

"tx_eq_pre": 6,

 

"tx_eq_post": 0,

 

"tx_eq_attn": 0

 

}

 

},

 

"lane1": {

 

"mac_ch": 1,

 

"tx_lane": 0,

 

"tx_pn_swap": 1,

 

"rx_lane": 0,

 

"rx_pn_swap": 1,

 

"serdes_params": {

 

"tx_eq_pre": 6,

 

"tx_eq_post": 0,

 

"tx_eq_attn": 0

 

}

},

 

 

… but how does that relate to this (from the Mininet lab):

 

  "ports": {

    "device:leaf1/3": {

      "interfaces": [

        {

          "name": "leaf1-3",

          "ips": [

            "10.0.100.254/24"

          ],

          "vlan-untagged": 100

        }

      ]

    },

    "device:leaf2/3": {

      "interfaces": [

        {

          "name": "leaf2-3",

          "ips": [

            "10.0.200.254/24"

          ],

          "vlan-untagged": 200

        }

      ]

    }

  },

Reply all
Reply to author
Forward
0 new messages