Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Won't Do
-
None
-
None
-
None
-
None
-
karaf 18.3
Description
The following instance-identifer value for node osiIf
crosses a list element
whose key my-is-is:name is an intance-identifer ...
This following encoding seems reasonable as output of a GET,
in which the single quote characters are escaped
in the nested instance-idenfier value.
<osiIf xmlns:my-interfaces="xxx" xmlns:my-is-is="yyy" xmlns:my-routing="zzz">/my-routing:routing/my-routing:control-plane-protocol[my-routing:name='MANAGEMENT-PLANE']/my-is-is:isis/my-is-is:interface[my-is-is:name='/my-interfaces:interfaces/my-interfaces:if[my-interfaces:typeIf='lan'][my-interfaces:idx='1']']</osiIf>
But it is not accepted by opendaylight sw, which raises the following error:
{
"errors": {
"error": [
{
"error-tag": "operation-failed",
"error-info": "java.lang.IllegalArgumentException: Could not parse Instance Identifier '/my-routing:routing/my-routing:control-plane-protocol[my-routing:name='MANAGEMENT-PLANE']/my-is-is:isis/my-is-is:interface[my-is-is:name='/my-interfaces:interfaces/my-interfaces:if[my-interfaces:typeIf='lan'][my-interfaces:idx='1']']'. Offset: 203 : Reason: Precondition must ends with ']'",
"error-message": "Transaction failed",
"error-type": "application"
}
]
}
}