Issue with Select Group Weights in ONOS JSON Configuration

6 views
Skip to first unread message

salmi sifeddine

unread,
Jan 2, 2024, 8:30:33 AMJan 2
to SDCORE-Announce

Hello everyone,

I'm currently working on setting up a Select Group in ONOS for load balancing, and I'm encountering an issue with specifying weights in the JSON configuration. When I include weights such as "weight": 0.3, I receive a server error with the message "at index 0." I've double-checked the syntax, but I'm still facing the problem.

Here's a simplified version of the JSON configuration:

{

  "type": "SELECT",

  "appCookie": "0x1234ABCD",
  "groupId": 1,
  "buckets": [
    {
      "weight": 0.4,
      "treatment": {
        "instructions": [
          {
            "type": "OUTPUT",
            "port": "2"
          }
        ]
      }
    },
    {
      "weight": 0.3,
      "treatment": {
        "instructions": [
          {
            "type": "OUTPUT",
            "port": "3"
          }
        ]
      }
    },
    {
      "weight": 0.3,
      "treatment": {
        "instructions": [
          {
            "type": "OUTPUT",
            "port": "4"
          }
        ]
      }
    }
  ]
}

I'm wondering if anyone in the community has encountered a similar issue or if there are specific considerations for specifying weights in ONOS JSON configurations for Select Groups. Any insights or suggestions would be greatly appreciated.

Thank you in advance!

Reply all
Reply to author
Forward
0 new messages