Hi,
We upgrade confd from 6.4.3 to 7.2.1. With this change, I am changing corresponding RESTCONF urls. There is no change in yang for this path. I am getting an error in 7.2.1 for this case:
Old Command:
curl -i -H ‘Content-Type: application/vnd.yang.operation+json’ -X POST -d ‘{“input”:{“password”:“abcd”}}’ -u admin:admin http://:/api/config/authentication/edit/local-user-list/local-users/edit/user/user1/_operations/password
New command:
curl -i -H ‘Content-Type: application/yang-data+json’ -X POST -d ‘{“input”:{“password”:“abcd”}}’ -u admin:admin http://:/restconf/data/bluecoat-clp-main:authentication/edit/local-user-list=local-users/edit/user=user1/password
In 7.2.1:
Output:
{
“errors”: {
“error”: [
{
“error-message”: “Bad format.”,
“error-path”: “/bluecoat-clp-main:authentication/edit/local-user-list=local-users/edit/user=user1/password”,
“error-tag”: “malformed-message”,
“error-type”: “application”
}
]
}
}
It works fine in 6.4.3. This is the new url. Old equivalent url also works in 6.4.3.
Output:
{
“bluecoat-clp-main:output”: {
“result”: " ok"
}
}
Please suggest. Thanks in advance.