@Override
public InstanceIdentifier<TerminationPoint> generateId(InstanceIdentifier<Node> id, TerminationPoint node) {
- return id.child(TerminationPoint.class, node.getKey());
+ return id.child(TerminationPoint.class, node.key());
}
@Override
@Override
public Identifier getKey(TerminationPoint data) {
- return data.getKey();
+ return data.key();
}
@Override
@Override
public boolean areEqual(TerminationPoint updated, TerminationPoint orig) {
HwvtepPhysicalLocatorAugmentation updatedPhysicalLocator =
- updated.getAugmentation(HwvtepPhysicalLocatorAugmentation.class);
+ updated.augmentation(HwvtepPhysicalLocatorAugmentation.class);
HwvtepPhysicalLocatorAugmentation origPhysicalLocator =
- orig.getAugmentation(HwvtepPhysicalLocatorAugmentation.class);
+ orig.augmentation(HwvtepPhysicalLocatorAugmentation.class);
return updatedPhysicalLocator.getDstIp().equals(origPhysicalLocator.getDstIp())
&& updatedPhysicalLocator.getEncapsulationType() == origPhysicalLocator.getEncapsulationType();
}