use of org.onosproject.lisp.msg.types.lcaf.LispAppDataLcafAddress.AppDataAddressBuilder in project onos by opennetworkinglab.
the class LispAppDataLcafAddressTest method setup.
@Before
public void setup() {
AppDataAddressBuilder builder1 = new AppDataAddressBuilder();
LispAfiAddress ipv4Address1 = new LispIpv4Address(IpAddress.valueOf("192.168.1.1"));
address1 = builder1.withProtocol((byte) 0x01).withIpTos((short) 10).withLocalPortLow((short) 1).withLocalPortHigh((short) 255).withRemotePortLow((short) 2).withRemotePortHigh((short) 254).withAddress(ipv4Address1).build();
AppDataAddressBuilder builder2 = new AppDataAddressBuilder();
sameAsAddress1 = builder2.withProtocol((byte) 0x01).withIpTos((short) 10).withLocalPortLow((short) 1).withLocalPortHigh((short) 255).withRemotePortLow((short) 2).withRemotePortHigh((short) 254).withAddress(ipv4Address1).build();
AppDataAddressBuilder builder3 = new AppDataAddressBuilder();
LispAfiAddress ipv4Address2 = new LispIpv4Address(IpAddress.valueOf("192.168.2.1"));
address2 = builder3.withProtocol((byte) 0x02).withIpTos((short) 20).withLocalPortLow((short) 1).withLocalPortHigh((short) 255).withRemotePortLow((short) 2).withRemotePortHigh((short) 254).withAddress(ipv4Address2).build();
}
Aggregations