我正在使用ODL Nitrogen Controller和vMX Juniper路由器通过Pathman-SR设置段路由。为了实现这一点,我必须更改IANA subojbects代码点,但我无法做到......
按照这个文件,但仍然没有结果:https://docs.opendaylight.org/en/stable-carbon/user-guide/pcep-user-guide.html#segment-routing https://test-odl-docs.readthedocs.io/en/latest/user-guide/pcep-user-guide.html
我尝试通过REST API更新配置,但是当我发送PUT请求时:/ restconf / config / pcep-segment-routing-app-config:pcep-segment-routing-app-config
与身体:
<pcep-segment-routing-config xmlns="urn:opendaylight:params:xml:ns:yang:controller:pcep:segment-routing-app-config">
<iana-sr-subobjects-type>true</iana-sr-subobjects-type>
</pcep-segment-routing-config>
我收到以下错误:
{
"errors": {
"error": [
{
"error-type": "protocol",
"error-tag": "invalid-value",
"error-message": "URI has bad format. Possible reasons:\n 1. \"pcep-segment-routing-app-config:pcep-segment-routing-app-config\" was not found in parent data node.\n 2. \"pcep-segment-routing-app-config:pcep-segment-routing-app-config\" is behind mount point. Then it should be in format \"/yang-ext:mount/pcep-segment-routing-app-config:pcep-segment-routing-app-config\"."
}
]
}
}
我认为doc中的URL有拼写错误,你必须使用/ restconf / config / pcep-segment-routing-app-config:pcep-segment-routing-config