HONEYCOMB-58 - Routing Api
[honeycomb.git] / lisp / lisp2vpp / src / test / java / io / fd / honeycomb / lisp / translate / AdjacencyData.java
1 /*
2  * Copyright (c) 2016 Cisco and/or its affiliates.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package io.fd.honeycomb.lisp.translate;
18
19 import org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.eid.mapping.context.rev160801.contexts.eid.mapping.context.mappings.mapping.Eid;
20 import org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.eid.mapping.context.rev160801.contexts.eid.mapping.context.mappings.mapping.EidBuilder;
21 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
22 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType;
23 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.Ipv4Afi;
24 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Builder;
25
26 public class AdjacencyData {
27
28     public static final Long VNI = 12L;
29
30     public static final Ipv4Address ADDRESS_ONE = new Ipv4Address("192.168.2.1");
31     public static final Ipv4Address ADDRESS_TWO = new Ipv4Address("192.168.2.2");
32     public static final Ipv4Address ADDRESS_THREE = new Ipv4Address("192.168.2.3");
33     public static final Ipv4Address ADDRESS_FOUR = new Ipv4Address("192.168.2.4");
34
35     public static final Eid LOCAL_EID_ONE = new EidBuilder()
36             .setAddressType(Ipv4Afi.class)
37             .setVirtualNetworkId(new InstanceIdType(VNI))
38             .setAddress(new Ipv4Builder().setIpv4(ADDRESS_ONE).build())
39             .build();
40
41     public static final Eid LOCAL_EID_TWO = new EidBuilder()
42             .setAddressType(Ipv4Afi.class)
43             .setVirtualNetworkId(new InstanceIdType(VNI))
44             .setAddress(new Ipv4Builder().setIpv4(ADDRESS_TWO).build())
45             .build();
46
47     public static final Eid REMOTE_EID_ONE = new EidBuilder()
48             .setAddressType(Ipv4Afi.class)
49             .setVirtualNetworkId(new InstanceIdType(VNI))
50             .setAddress(new Ipv4Builder().setIpv4(ADDRESS_THREE).build())
51             .build();
52     public static final Eid REMOTE_EID_TWO = new EidBuilder()
53             .setAddressType(Ipv4Afi.class)
54             .setVirtualNetworkId(new InstanceIdType(VNI))
55             .setAddress(new Ipv4Builder().setIpv4(ADDRESS_FOUR).build())
56             .build();
57
58
59 }