Search in sources :

Example 1 with SegmentAddressBuilder

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();
}
Also used : SegmentAddressBuilder(org.onosproject.lisp.msg.types.lcaf.LispSegmentLcafAddress.SegmentAddressBuilder) LispIpv4Address(org.onosproject.lisp.msg.types.LispIpv4Address) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 LispIpv4Address (org.onosproject.lisp.msg.types.LispIpv4Address)1 SegmentAddressBuilder (org.onosproject.lisp.msg.types.lcaf.LispSegmentLcafAddress.SegmentAddressBuilder)1