use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddressBuilder in project lispflowmapping by opendaylight.
the class LispAddressUtil method getNoAddressEid.
public static Eid getNoAddressEid() {
EidBuilder builder = new EidBuilder();
builder.setAddressType(NoAddressAfi.class);
builder.setVirtualNetworkId(null);
builder.setAddress(new NoAddressBuilder().setNoAddress(true).build());
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddressBuilder in project lispflowmapping by opendaylight.
the class NoAddressSerializer method deserializeEidData.
@Override
protected Eid deserializeEidData(ByteBuffer buffer, LispAddressSerializerContext ctx) {
EidBuilder eb = new EidBuilder();
eb.setAddressType(NoAddressAfi.class);
eb.setVirtualNetworkId(getVni(ctx));
eb.setAddress(new NoAddressBuilder().setNoAddress(true).build());
return eb.build();
}
use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddressBuilder in project lispflowmapping by opendaylight.
the class NoAddressSerializer method deserializeRlocData.
@Override
protected Rloc deserializeRlocData(ByteBuffer buffer) {
RlocBuilder rb = new RlocBuilder();
rb.setAddressType(NoAddressAfi.class);
rb.setVirtualNetworkId(null);
rb.setAddress(new NoAddressBuilder().setNoAddress(true).build());
return rb.build();
}
Aggregations