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
_______________________________________________
stratum-dev mailing list
strat...@lists.stratumproject.org
https://lists.stratumproject.org/listinfo/stratum-dev
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
Hi Yi
Thank you! I need to learn to read the instructions properly 😊
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
Try doing it with an array (as described by Yi Tseng):
"locations": ["device:my-tofino-switch/136"]
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^���
Thank you – I missed that completely!
David