Configure SnapRoute

We use SnapRoute as our network agent. This document describes the configuration of SnapRoute according to our demo setup.

We assume that the wedge is accessible via wedge-mgmt IP as outlined in Provision Wedge.

Verify that SnapRoute is running

Retrieve the SnapRoute SystemStatus from your wedge using http://wedge-mgmt:8080/public/v1/state/SystemStatus. And software versions can be retrieved at http://wedge-mgmt:8080/public/v1/state/SystemSwVersion.

Btw, a browser extensions like JSONView can help in formatting the output in a more human-readable way.

If SnapRoute is not running please refer to Wedge Installation.

Configure Port Speed

According to our demo setup all ports will be configured as 10gb port, port 1 for the ‘outside’ traffic and Port 6-9 for the communication with the compute nodes within the rack.

curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort1", "BreakOutMode":"4x10"}' 'http://wedge-mgmt:8080/public/v1/config/Port'
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort1s1", "Speed":10000, "AdminState" : "UP"}' 'http://wedge-mgmt:8080/public/v1/config/Port'

curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort2", "BreakOutMode":"4x10"}' 'http://wedge-mgmt:8080/public/v1/config/Port'
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort2s1", "Speed":10000, "AdminState" : "UP"}' 'http://wedge-mgmt:8080/public/v1/config/Port'
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort2s2", "Speed":10000, "AdminState" : "UP"}' 'http://wedge-mgmt:8080/public/v1/config/Port'
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort2s3", "Speed":10000, "AdminState" : "UP"}' 'http://wedge-mgmt:8080/public/v1/config/Port'
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"fpPort2s4", "Speed":10000, "AdminState" : "UP"}' 'http://wedge-mgmt:8080/public/v1/config/Port'

Configure Vlan

According to our demo setup we assign all the ports to vlan100, and add an interface for the wedge at 10.250.3.20. That interface will be used by the compute notes to communicate with the ToRC services running on the wedge.

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"VlanId":100,"UntagIntfList":["1, 6-9"]}' 'http://wedge-mgmt:8080/public/v1/config/Vlan'

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"IntfRef":"vlan100","IpAddr":"10.250.3.20/24"}' 'http://wedge-mgmt:8080/public/v1/config/IPv4Intf'

Next: Install ToRC Core.