@Test public void testDecodeDeleteIPv4() throws Exception { DeleteIpv4Attribute ipv4Attribute = (DeleteIpv4Attribute) LegacyAttributeFactory.decodeDeleteIPv4(AttributeType.DelIpv4, 13, new byte[] {0, 0, 0, 3, 0, 0, 0, 13, -64, -88, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 16}); assertEquals(IpPrefixBuilder.getDefaultInstance("192.168.0.0/16"), ipv4Attribute.getDeleteIpv4Attributes().getIpPrefix()); }
public static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value) throws UnknownHostException, AddressLengthException, UnknownPrefixException { MappingRecord mappingRecord = org.opendaylight.sxp.core.messaging.legacy.MappingRecord.decodeAddress(operationCode, length, value); DeleteIpv4AttributeBuilder _attributeBuilder = new DeleteIpv4AttributeBuilder(); DeleteIpv4AttributesBuilder _attributesBuilder = new DeleteIpv4AttributesBuilder(); _attributesBuilder.setIpPrefix(mappingRecord.getAddress()); _attributeBuilder.setDeleteIpv4Attributes(_attributesBuilder.build()); return _attributeBuilder.build(); }
LegacyAttributeFactory { public static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value) throws UnknownHostException, AddressLengthException, UnknownPrefixException { MappingRecord mappingRecord = org.opendaylight.sxp.core.messaging.legacy.MappingRecord.decodeAddress(operationCode, length, value); DeleteIpv4AttributeBuilder _attributeBuilder = new DeleteIpv4AttributeBuilder(); DeleteIpv4AttributesBuilder _attributesBuilder = new DeleteIpv4AttributesBuilder(); _attributesBuilder.setIpPrefix(mappingRecord.getAddress()); _attributeBuilder.setDeleteIpv4Attributes(_attributesBuilder.build()); return _attributeBuilder.build(); } }
LegacyAttributeFactory { public static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value) throws UnknownHostException, AddressLengthException, UnknownPrefixException { MappingRecord mappingRecord = org.opendaylight.sxp.core.messaging.legacy.MappingRecord.decodeAddress(operationCode, length, value); DeleteIpv4AttributeBuilder _attributeBuilder = new DeleteIpv4AttributeBuilder(); DeleteIpv4AttributesBuilder _attributesBuilder = new DeleteIpv4AttributesBuilder(); _attributesBuilder.setIpPrefix(mappingRecord.getAddress()); _attributeBuilder.setDeleteIpv4Attributes(_attributesBuilder.build()); return _attributeBuilder.build(); }  }
LegacyAttributeFactory { public static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value) throws UnknownHostException, AddressLengthException, UnknownPrefixException { MappingRecord mappingRecord = org.opendaylight.sxp.core.messaging.legacy.MappingRecord.decodeAddress(operationCode, length, value); DeleteIpv4AttributeBuilder _attributeBuilder = new DeleteIpv4AttributeBuilder(); DeleteIpv4AttributesBuilder _attributesBuilder = new DeleteIpv4AttributesBuilder(); _attributesBuilder.setIpPrefix(mappingRecord.getAddress()); _attributeBuilder.setDeleteIpv4Attributes(_attributesBuilder.build()); return _attributeBuilder.build(); }  static MappingRecord createAddIpv4(Sgt sgt, IpPrefix prefix); static MappingRecord createAddIpv6(Sgt sgt, IpPrefix prefix); static MappingRecord createDeleteIpv4(IpPrefix prefix); static MappingRecord createDeleteIpv6(IpPrefix prefix); static AttributeOptionalFields decodeAddIPv4(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeAddIPv6(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeDeleteIPv6(AttributeType operationCode, int length, byte[] value); }
LegacyAttributeFactory { public static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value) throws UnknownHostException, AddressLengthException, UnknownPrefixException { MappingRecord mappingRecord = org.opendaylight.sxp.core.messaging.legacy.MappingRecord.decodeAddress(operationCode, length, value); DeleteIpv4AttributeBuilder _attributeBuilder = new DeleteIpv4AttributeBuilder(); DeleteIpv4AttributesBuilder _attributesBuilder = new DeleteIpv4AttributesBuilder(); _attributesBuilder.setIpPrefix(mappingRecord.getAddress()); _attributeBuilder.setDeleteIpv4Attributes(_attributesBuilder.build()); return _attributeBuilder.build(); }  static MappingRecord createAddIpv4(Sgt sgt, IpPrefix prefix); static MappingRecord createAddIpv6(Sgt sgt, IpPrefix prefix); static MappingRecord createDeleteIpv4(IpPrefix prefix); static MappingRecord createDeleteIpv6(IpPrefix prefix); static AttributeOptionalFields decodeAddIPv4(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeAddIPv6(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeDeleteIPv4(AttributeType operationCode, int length, byte[] value); static AttributeOptionalFields decodeDeleteIPv6(AttributeType operationCode, int length, byte[] value);  }