Software Defined Networking
1752807 Members
5895 Online
108789 Solutions
New Discussion юеВ

"Resource not found" when adding meter

 
checho
Occasional Advisor

"Resource not found" when adding meter

Hi, I am trying to add a meter to one of our HP 3800 switches but always get a "Resource not found" message as output. I am using VAN 2.7.18 REST API.

Here's the request:

POST /sdn/v2.0/of/datapaths/00:16:10:60:4b:b6:46:80/meters

{
    "meter":
    {
        "id": 1,
        "command": "add",
        "flags": [
            "kbps",
            "stats"
        ],
        "bands": [
            {
                "rate": 2000,
                "mtype": "drop"
            }
        ]

    }
}

The response is: {"message":"Resource not found"}

I can't see what I am missing. Any help would be appreacited :) 

PS. If I try to get meter features it works fine. 

2 REPLIES 2
Abhay_B
Valued Contributor

Re: "Resource not found" when adding meter

Hello Checho,

Can you please try creating the meter without the "stats" flags?

The meter on the switch will still collect statistics even without this flag set. So one should be able to fetch the statistics of the meter at a later point.

Thanks!

Abhay

Abhay_B
Valued Contributor

Re: "Resource not found" when adding meter

Hello Checho,

I hope my answer helped you get around the issue you reported.

If yes, can you please mark the issue as solved so that it would help others in the forum who might see a similar issue.

Thanks!

Abhay