use of org.onosproject.lisp.msg.types.lcaf.LispSegmentLcafAddress.SegmentAddressBuilder in project onos by opennetworkinglab.
the class LispSegmentLcafAddressTest method setup.
@Before
public void setup() {
SegmentAddressBuilder builder1 = new SegmentAddressBuilder();
LispIpv4Address ipv4Address1 = new LispIpv4Address(IpAddress.valueOf("192.168.1.1"));
address1 = builder1.withIdMaskLength((byte) 0x01).withInstanceId(1).withAddress(ipv4Address1).build();
SegmentAddressBuilder builder2 = new SegmentAddressBuilder();
sameAsAddress1 = builder2.withIdMaskLength((byte) 0x01).withInstanceId(1).withAddress(ipv4Address1).build();
SegmentAddressBuilder builder3 = new SegmentAddressBuilder();
LispIpv4Address ipv4Address2 = new LispIpv4Address(IpAddress.valueOf("192.168.2.1"));
address2 = builder3.withIdMaskLength((byte) 0x02).withInstanceId(2).withAddress(ipv4Address2).build();
}
Aggregations