public static AuthenticationKey toAuthenticationKey(AddKeyInput input) {
AuthenticationKeyBuilder akb = new AuthenticationKeyBuilder();
akb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getLispAddressContainer(), input.getMaskLength())));
+ input.getLispAddressContainer())));
akb.setLispAddressContainer(input.getLispAddressContainer());
akb.setMaskLength(input.getMaskLength());
akb.setKeyType(input.getKeyType());
public static AuthenticationKey toAuthenticationKey(UpdateKeyInput input) {
AuthenticationKeyBuilder akb = new AuthenticationKeyBuilder();
akb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getEid().getLispAddressContainer(), input.getEid().getMaskLength())));
+ input.getEid().getLispAddressContainer())));
akb.setLispAddressContainer(input.getEid().getLispAddressContainer());
akb.setMaskLength(input.getEid().getMaskLength());
akb.setKeyType(input.getKey().getKeyType());
public static AuthenticationKey toAuthenticationKey(RemoveKeyInput input) {
AuthenticationKeyBuilder akb = new AuthenticationKeyBuilder();
akb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getLispAddressContainer(), input.getMaskLength())));
+ input.getLispAddressContainer())));
akb.setLispAddressContainer(input.getLispAddressContainer());
akb.setMaskLength(input.getMaskLength());
return akb.build();
public static Mapping toMapping(AddMappingInput input) {
MappingBuilder mb = new MappingBuilder();
mb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getLispAddressContainer(), input.getMaskLength())));
+ input.getLispAddressContainer())));
mb.setOrigin(MappingOrigin.Northbound);
mb.setRecordTtl(input.getRecordTtl());
mb.setMaskLength(input.getMaskLength());
public static Mapping toMapping(UpdateMappingInput input) {
MappingBuilder mb = new MappingBuilder();
mb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getLispAddressContainer(), input.getMaskLength())));
+ input.getLispAddressContainer())));
mb.setOrigin(MappingOrigin.Northbound);
mb.setRecordTtl(input.getRecordTtl());
mb.setMaskLength(input.getMaskLength());
public static Mapping toMapping(RemoveMappingInput input) {
MappingBuilder mb = new MappingBuilder();
mb.setEid(new EidUri(LispAddressStringifier.getURIString(
- input.getLispAddressContainer(), input.getMaskLength())));
+ input.getLispAddressContainer())));
mb.setOrigin(MappingOrigin.Northbound);
mb.setMaskLength(input.getMaskLength());
mb.setLispAddressContainer(input.getLispAddressContainer());