-
Bug
-
Resolution: Done
-
Highest
-
None
-
None
-
None
While Executing yang action requests on ODL via POST request failes for augmented yang actions see attached screenshot
By going through ODL wiki , it says that QName for augmented yang model would not be supported.
Running into issue its related to invocation of Yang 1.1 Action on Odl.
When I am invoking action on Yang Model having Augmentations like below it fails with Exception : "Augmentation node has no Qname" **
It occurs at time of getting : QName getNodeType() >> path.getNodeType() as shown in below code snippet.
In Class : RestconfInvokeOperationsUtil.java in Restconf Module.
private static DOMDataTreeIdentifier prepareDataTreeId(final YangInstanceIdentifier yangIId,
final SchemaPath schemaPath) {
final List<PathArgument> pathArg = new ArrayList<>();
for (PathArgument path : yangIId.getPathArguments()) {
if (path.getNodeType().getLocalName().equals(schemaPath.getLastComponent().getLocalName()))
pathArg.add(path);
}
YangInstanceIdentifier yangInstanceIdentifier = YangInstanceIdentifier.builder().append(pathArg).build();
DOMDataTreeIdentifier domDataTreeIdentifier = new DOMDataTreeIdentifier(LogicalDatastoreType.OPERATIONAL,
yangInstanceIdentifier);
return domDataTreeIdentifier;
}
Yang Model :
module er-module
yang-version 1.1;
namespace "https://example.com/ns/er-module";
prefix rcsswm;
import er-managed-element
import er-yang-extensions
{ prefix yexte; }
revision 2019-12-06
augment "/emael:ManagedElement/emael:SystemFunctions";
augment "/emael:ManagedElement/emael:SystemFunctions" {
list SwM {
key "id";
leaf id
yexte:is-system-created;
container attributes
}
}
grouping SwMGrp {
action createUpgradePackage {
input {
leaf uri
}
}
}
}
- relates to
-
INTTEST-107 add CSIT test cases to cover rpc action
- In Progress
-
NETCONF-702 Regression in NETCONF ACTION Test
- Resolved