Issues with Configuring Wedge 100bf-32x with ONOS

74 views
Skip to first unread message

David Lake

unread,
Jul 18, 2020, 3:55:35 PM7/18/20
to strat...@lists.stratumproject.org, P4 brigade, Serdar Vural

Hello

 

Thank you for you help so far.  I now need some more guidance please.

 

I have a Wedge 100BF-32x running ONL and the Stratum Docker container with ONOS 2.2.3 and the fabric-tofino pipeconf.

 

When I set the CHASSIS_CONFIG for the switch and start the container, I see errors regarding the fan configuration from the switch (see “start-stratum2.txt” log file).

 

Eventually, these timeout and the switch becomes available (about 10 minutes to start).


However, when I add to ONOS using the netcfg command I see errors and the ports show as “Enabled – False” in ONOS.   My netfg log is attached as “necfg.txt.”

 

What I need to do is to set up the switch with 4 subnets across the 32 ports.  I’m trying to find an example configuration and some worked tutorials/user-guides.

 

Can someone please point me to some sample configs for similar environments please and tell me where I am going wrong with the configuration?


Thanks

 

David

 

 

netcfg.txt
Start-stratum2.txt

Yi Tseng

unread,
Jul 20, 2020, 2:13:13 PM7/20/20
to David Lake, strat...@lists.stratumproject.org, P4 brigade, Serdar Vural
Hi David,

Please find the config file attached, and modify it based on your requirements.

Also, you can follow the Trellis Configuration Guide for more information about how to config the ONOS Trellis application.

Yi

_______________________________________________
stratum-dev mailing list
strat...@lists.stratumproject.org
https://lists.stratumproject.org/listinfo/stratum-dev


--
Yi Tseng
Member of Technical Staff
Open Networking Foundation
netcfg.json

David Lake

unread,
Jul 23, 2020, 6:16:19 PM7/23/20
to Yi Tseng, strat...@lists.stratumproject.org, P4 brigade, Serdar Vural

Hi Yi

 

I’m making very good progress thanks to the excellent support here – thank you.

 

I have one problem.

 

One host I have does not “talk” first and therefore I need to configure the MAC address and port manually.

 

I’ve tried to do this by including the MAC address and IP address in the tofin-netcfg.json but I get this response from ONOS:

 

root@ONOS:~/fabric-tofino# make netcfg ONOS_HOST=localhost

*** Pushing tofino-netcfg.json to ONOS at localhost...

curl --fail -sSL --user onos:rocks --noproxy localhost -X POST -H 'Content-Type:application/json' \

        http://localhost:8181/onos/v1/network/configuration -d@./tofino-netcfg.json

{"code":207,"message":["Error parsing config hosts/24:8A:07:B8:71:DB/None/basic: Field \"location\" is invalid: Field is not allowed"]}

 

 

This is the Tofino-netcfg.json file:

 

{

  "layouts" : { },

  "devices" : {

    "device:my-tofino-switch" : {

      "basic" : {

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

        "driver" : "stratum-tofino",

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

      },

  "segmentrouting": {

    "name": "edge1",

    "ipv4NodeSid": 101,

    "ipv4Loopback": "192.168.1.1",

    "routerMac": "00:AA:00:00:00:01",

    "isEdgeRouter": true,

    "adjacencySids": []

  }

  }

  },

  "hosts" : {

    "24:8a:07:b8:71:db/None": {

      "basic":{

       "ips":["10.0.40.3"],

       "location": "device:my-tofino-switch/136"

      }

    }

  },

  "apps" : { },

  "ports" : {

  "device:my-tofino-switch/128" : {

      "interfaces" : [{

        "name" : "Port 1",

        "ips" : [ "10.0.30.254/24"],

        "vlan-untagged": 30,

        "mac" : "00:AA:00:00:00:01"

      }]

    },

  "device:my-tofino-switch/136" : {

      "interfaces" : [{

        "name" : "Port 2 ",

        "ips" : [ "10.0.40.254/24"],

        "vlan-untagged": 40,

        "mac" : "00:AA:00:00:00:01"

      }]

    },

  "device:my-tofino-switch/144" : {

      "interfaces" : [{

        "name" : "Port 3 ",

        "ips" : [ "10.0.10.254/24"],

        "vlan-untagged": 10,

        "mac" : "00:AA:00:00:00:01"

      }]

    },

  "device:my-tofino-switch/152" : {

      "interfaces" : [{

        "name" : "Port 4 ",

        "ips" : [ "10.0.20.254/24"],

        "vlan-untagged": 20,

        "mac" : "00:AA:00:00:00:01"

      }]

    },

  "device:my-tofino-switch/12" : {

      "interfaces" : [{

        "name" : "Port 15/1",

        "ips" : [ "10.0.30.254/24"],

        "vlan-untagged": 30,

        "mac" : "00:AA:00:00:00:01"

      }]

    },

    "device:my-tofino-switch/48" : {

      "interfaces" : [{

        "name" : "Port 23/1",

        "ips" : [ "10.0.40.254/24"],

        "vlan-untagged": 40,

        "mac" : "00:AA:00:00:00:01"

      }]

    }

   },

  "regions" : { },

  "links" : { }

}

 

Thank you

 

David

Yi Tseng

unread,
Jul 23, 2020, 10:58:08 PM7/23/20
to David Lake, strat...@lists.stratumproject.org, P4 brigade, Serdar Vural
Hi David,

Please try "locations": ["device:my-tofino-switch/136"]

Yi

David Lake

unread,
Jul 24, 2020, 7:10:46 AM7/24/20
to Yi Tseng, strat...@lists.stratumproject.org, P4 brigade, Serdar Vural

Hi Yi

 

Thank you!   I need to learn to read the instructions properly 😊

David Lake

unread,
Jul 28, 2020, 1:26:13 PM7/28/20
to Yi Tseng, strat...@lists.stratumproject.org, P4 brigade, Serdar Vural

Hi Yi

 

I’ve changed to “locations” but I’m getting this message when I try to send the netcfg:

 

{"code":207,"message":["Error parsing config hosts/24:8A:07:B8:71:DB/None/basic: class com.fasterxml.jackson.databind.node.TextNode cannot be cast to class com.fasterxml.jackson.databind.node.ArrayNode (com.fasterxml.jackson.databind.node.TextNode and com.fasterxml.jackson.databind.node.ArrayNode are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @9942f40)"]}

 

The “hosts” section is:

 

  "hosts" : {

    "24:8a:07:b8:71:db/None": {

      "basic":{

       "ips":["10.0.40.3"],

       "locations": "device:my-tofino-switch/136"

      }

    }

  },

 

 

Thanks

 

David

 

From: Yi Tseng <y...@opennetworking.org>

Sent: 24 July 2020 03:58

David Gengenbach

unread,
Jul 28, 2020, 1:59:52 PM7/28/20
to David Lake, Yi Tseng, Serdar Vural, strat...@lists.stratumproject.org, P4 brigade

Try doing it with an array (as described by Yi Tseng):

"locations": ["device:my-tofino-switch/136"]

On 7/28/20 7:26 PM, David Lake via stratum-dev wrote:

Hi Yi

 

I’ve changed to “locations” but I’m getting this message when I try to send the netcfg:

 

{"code":207,"message":["Error parsing config hosts/24:8A:07:B8:71:DB/None/basic: class com.fasterxml.jackson.databind.node.TextNode cannot be cast to class com.fasterxml.jackson.databind.node.ArrayNode (com.fasterxml.jackson.databind.node.TextNode and com.fasterxml.jackson.databind.node.ArrayNode are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @9942f40)"]}

 

The “hosts” section is:

 

  "hosts" : {

    "24:8a:07:b8:71:db/None": {

      "basic":{

       "ips":["10.0.40.3"],

       "locations": "device:my-tofino-switch/136"

      }

    }

  },

 

 

Thanks

 

David

 

From: Yi Tseng <y...@opennetworking.org>

Sent: 24 July 2020 03:58


N �n�r����)em�h�yhiם�w^���

David Lake

unread,
Jul 28, 2020, 2:11:03 PM7/28/20
to David Gengenbach, Yi Tseng, Serdar Vural, strat...@lists.stratumproject.org, P4 brigade

Thank you – I missed that completely!


David

Reply all
Reply to author
Forward
0 new messages