Search in sources :

Example 1 with NonceAddressBuilder

use of org.onosproject.lisp.msg.types.lcaf.LispNonceLcafAddress.NonceAddressBuilder in project onos by opennetworkinglab.

the class LispNonceLcafAddressTest method setup.

@Before
public void setup() {
    NonceAddressBuilder builder1 = new NonceAddressBuilder();
    LispIpv4Address ipv4Address1 = new LispIpv4Address(IpAddress.valueOf(IP_ADDRESS_1));
    address1 = builder1.withNonce(NONCE_1).withAddress(ipv4Address1).build();
    NonceAddressBuilder builder2 = new NonceAddressBuilder();
    sameAsAddress1 = builder2.withNonce(NONCE_1).withAddress(ipv4Address1).build();
    NonceAddressBuilder builder3 = new NonceAddressBuilder();
    LispIpv4Address ipv4Address2 = new LispIpv4Address(IpAddress.valueOf(IP_ADDRESS_2));
    address2 = builder3.withNonce(NONCE_2).withAddress(ipv4Address2).build();
}
Also used : LispIpv4Address(org.onosproject.lisp.msg.types.LispIpv4Address) NonceAddressBuilder(org.onosproject.lisp.msg.types.lcaf.LispNonceLcafAddress.NonceAddressBuilder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 LispIpv4Address (org.onosproject.lisp.msg.types.LispIpv4Address)1 NonceAddressBuilder (org.onosproject.lisp.msg.types.lcaf.LispNonceLcafAddress.NonceAddressBuilder)1