Use mpls postman collection to reproduce:
1) Configure loopback interface, enable mpls, push single label
2) Modify push request (eg. ip-prefix)
2018-01-15 17:22:37.078 CET [qtp645621647-42] WARN i.f.h.d.i.ModifiableDataTreeDelegator - Failed to apply all changes
io.fd.honeycomb.translate.write.registry.UpdateFailedException: io.fd.honeycomb.translate.write.WriteFailedException$UpdateFailedException: Failed to update data from: StaticLsp{getConfig=Config{getInSegment=InSegment{getType=IpPrefix{getIpPrefix=IpPrefix [_ipv4Prefix=Ipv4Prefix [_value=10.10.34.0/24]], augmentations={}}, augmentations={}}, getOperation=ImposeAndForward, getOutSegment=SimplePath{getNextHop=IpAddress [_ipv4Address=Ipv4Address [_value=10.10.13.3]], getOutgoingInterface=loop0, getOutgoingLabel=MplsLabelGeneralUse [_value=111], augmentations={}}, augmentations={}}, getName=static-lsp0, augmentations={}} to: StaticLsp{getConfig=Config{getInSegment=InSegment{getType=IpPrefix{getIpPrefix=IpPrefix [_ipv4Prefix=Ipv4Prefix [_value=11.10.34.0/24]], augmentations={}}, augmentations={}}, getOperation=ImposeAndForward, getOutSegment=SimplePath{getNextHop=IpAddress [_ipv4Address=Ipv4Address [_value=10.10.13.3]], getOutgoingInterface=loop0, getOutgoingLabel=MplsLabelGeneralUse [_value=111], augmentations={}}, augmentations={}}, getName=static-lsp0, augmentations={}}, at: KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls._static.lsps.StaticLsp, path=[org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.routing.rev140524.Routing, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls.rev170702.Routing1, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls.rev170702.routing.Mpls, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.Mpls1, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls.StaticLsps, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls._static.lsps.StaticLsp[key=StaticLspKey [_name=static-lsp0]]]}
at io.fd.honeycomb.translate.impl.write.registry.FlatWriterRegistry.singleUpdate(FlatWriterRegistry.java:150) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.impl.write.registry.FlatWriterRegistry.processModifications(FlatWriterRegistry.java:90) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.data.impl.ModifiableDataTreeDelegator$DelegatingConfigSnapshot.processCandidate(ModifiableDataTreeDelegator.java:138) ~[data-impl-1.18.01-SNAPSHOT.jar:na]
(...)
Caused by: io.fd.honeycomb.translate.write.WriteFailedException$UpdateFailedException: Failed to update data from: StaticLsp{getConfig=Config{getInSegment=InSegment{getType=IpPrefix{getIpPrefix=IpPrefix [_ipv4Prefix=Ipv4Prefix [_value=10.10.34.0/24]], augmentations={}}, augmentations={}}, getOperation=ImposeAndForward, getOutSegment=SimplePath{getNextHop=IpAddress [_ipv4Address=Ipv4Address [_value=10.10.13.3]], getOutgoingInterface=loop0, getOutgoingLabel=MplsLabelGeneralUse [_value=111], augmentations={}}, augmentations={}}, getName=static-lsp0, augmentations={}} to: StaticLsp{getConfig=Config{getInSegment=InSegment{getType=IpPrefix{getIpPrefix=IpPrefix [_ipv4Prefix=Ipv4Prefix [_value=11.10.34.0/24]], augmentations={}}, augmentations={}}, getOperation=ImposeAndForward, getOutSegment=SimplePath{getNextHop=IpAddress [_ipv4Address=Ipv4Address [_value=10.10.13.3]], getOutgoingInterface=loop0, getOutgoingLabel=MplsLabelGeneralUse [_value=111], augmentations={}}, augmentations={}}, getName=static-lsp0, augmentations={}}, at: KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls._static.lsps.StaticLsp, path=[org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.routing.rev140524.Routing, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls.rev170702.Routing1, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls.rev170702.routing.Mpls, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.Mpls1, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls.StaticLsps, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.mpls._static.rev170310.routing.mpls._static.lsps.StaticLsp[key=StaticLspKey [_name=static-lsp0]]]}
at io.fd.honeycomb.translate.impl.write.GenericWriter.updateCurrentAttributes(GenericWriter.java:90) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.util.write.AbstractGenericWriter.updateCurrent(AbstractGenericWriter.java:61) ~[translate-utils-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.util.write.AbstractGenericWriter.processModification(AbstractGenericWriter.java:89) ~[translate-utils-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.impl.write.registry.SubtreeWriter.processModification(SubtreeWriter.java:75) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.impl.write.registry.FlatWriterRegistry.singleUpdate(FlatWriterRegistry.java:144) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
... 59 common frames omitted
Caused by: java.lang.UnsupportedOperationException: Default implementation of updateCurrentAttributes should not be invoked.Either override this method or do not invoke it directly
at io.fd.honeycomb.translate.spi.write.WriterCustomizer.updateCurrentAttributes(WriterCustomizer.java:63) ~[translate-spi-1.18.01-SNAPSHOT.jar:na]
at io.fd.honeycomb.translate.impl.write.GenericWriter.updateCurrentAttributes(GenericWriter.java:88) ~[translate-impl-1.18.01-SNAPSHOT.jar:na]
... 63 common frames omitted
- relates to
-
HONEYCOMB-421 Make update optional for SubtreeWriters
- New