问题描述
我正在尝试以 JSON 格式发送具有属性“inactive”:“inactive”的正文,但 opendaylight 控制器不接受以下任何格式。
curl --location --request POST 'http://10.13.82.108:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/denali-vpn-jess1/yang- ext:mount/ietf-netconf:edit-config'
--header '授权:基本 YWRtaW46YWRtaW4='
--header '内容类型:应用程序/json'
--header '接受:应用程序/xml' \
--data '{
"input": {
"target": {
"candidate": ""
},"config": {
"configuration": {
"interfaces": {
"interface": {
"@" : {
"inactive" : "inactive"
},"name": "ps1"
}
}
}
}
}
}'
--data '{
"input": {
"target": {
"candidate": ""
},"config": {
"configuration": {
"interfaces": {
"interface": {
"-active": "active","name": "ps1"
}
}
}
}
}
}'
--data '{
"input": {
"target": {
"candidate": ""
},"config": {
"configuration": {
"interfaces": {
"interface": {
"@inactive": "inactive","name": "ps1"
}
}
}
}
}
}'
控制器接受 XML 中的等效属性。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)