-
Bug
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
8085
While putting following trought netconf
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-2">
<edit-config>
<target>
<candidate/>
</target>
<default-operation>none</default-operation>
<config>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
<interface>
<name>GigabitEthernet0/8/0</name>
<pbb-rewrite xmlns="urn:opendaylight:params:xml:ns:yang:vpp-pbb" xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="replace">
<source-address>aa:aa:aa:aa:aa:ab</source-address>
<destination-address>bb:bb:bb:bb:bb:bc</destination-address>
<b-vlan-tag-vlan-id>2223</b-vlan-tag-vlan-id>
<interface-operation>translate-2-1</interface-operation>
<i-tag-isid>12</i-tag-isid>
<outer-tag>16</outer-tag>
</pbb-rewrite>
</interface>
</interfaces>
</config>
</edit-config>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-2">
<ok/>
</rpc-reply>
]]>]]><rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-6">
<commit/>
</rpc>
]]>]]>
Following error is showed
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc-reply message-id="m-6" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>Transaction commit failed on Failed to validate DataTreeModification 1 Cause: Node /(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces/interface/interface[
]/AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]} does not exist. Cannot apply modification to its children.</error-message>
</rpc-error>
</rpc-reply>
]]>]]>
Data create for this transaction
/(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces/interface/interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}]
/AugmentationIdentifier
/(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite
ImmutableContainerNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite,
value=[ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)b-vlan-tag-vlan-id, value=2223, attributes={}},
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)outer-tag, value=16, attributes={}},
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)i-tag-isid, value=12, attributes={}},
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)destination-address, value=bb:bb:bb:bb:bb:bc, attributes={}},
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)source-address, value=aa:aa:aa:aa:aa:ab, attributes={}},
ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)interface-operation, value=translate-2-1, attributes={}}], attributes={}}
After merging data, this is attempted to be commited as result
NodeModification [identifier=(urn:ietf:params:xml:ns:netconf:base:1.0)data, modificationType=TOUCH, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces, modificationType=TOUCH, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface, modificationType=MERGE, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}]=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}], modificationType=TOUCH, childModification={AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}=NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]}]}]}]}]}]
MutableDataTree [modification=NodeModification [identifier=(urn:ietf:params:xml:ns:netconf:base:1.0)data, modificationType=TOUCH, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces, modificationType=TOUCH, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface, modificationType=MERGE, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
]=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}], modificationType=TOUCH, childModification={AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}=NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]}]}]}]}]}]]
NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interfaces, modificationType=TOUCH, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface, modificationType=MERGE, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}]=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}], modificationType=TOUCH, childModification={AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}=NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]}]}]}]}]
key =
"(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface"
value =
"NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface, modificationType=MERGE, childModification={(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}]=NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}], modificationType=TOUCH, childModification={AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}=NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:ya"
key =
{YangInstanceIdentifier$NodeIdentifierWithPredicates@10237}"(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}]"
value =
"NodeModification [identifier=(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)interface[
{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=GigabitEthernet0/8/0}], modificationType=TOUCH, childModification={AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}=NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]}]}]"
key =
{YangInstanceIdentifier$AugmentationIdentifier@10250}"AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}"
value =
"NodeModification [identifier=AugmentationIdentifier
{childNames=[(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite]}, modificationType=TOUCH, childModification={(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite=NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]}]"
key =
{YangInstanceIdentifier$NodeIdentifier@10135} "(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite"value = {ModifiedNode@10264} "NodeModification [identifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, modificationType=WRITE, childModification={}]"
identifier = {YangInstanceIdentifier$NodeIdentifier@10135}
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite"
value =
"ImmutableContainerNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)pbb-rewrite, value=[ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)b-vlan-tag-vlan-id, value=2223, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)outer-tag, value=16, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)i-tag-isid, value=12, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)destination-address, value=bb:bb:bb:bb:bb:bc, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)source-address, value=aa:aa:aa:aa:aa:ab, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)interface-operation, value=translate-2-1, attri"
children =
{ImmutableOffsetMap$Unordered@10133} size = 6
0 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)b-vlan-tag-vlan-id" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)b-vlan-tag-vlan-id, value=2223, attributes={}}"
1 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)outer-tag" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)outer-tag, value=16, attributes={}}"
2 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)i-tag-isid" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)i-tag-isid, value=12, attributes={}}"
3 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)destination-address" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)destination-address, value=bb:bb:bb:bb:bb:bc, attributes={}}"
4 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)source-address" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)source-address, value=aa:aa:aa:aa:aa:ab, attributes={}}"
5 =
"(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)interface-operation" -> "ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:vpp-pbb?revision=2016-12-14)interface-operation, value=translate-2-1, attributes={}}"
As can be seen, all data from augmentaions and augmentation itself is present ,so the error does not make sense