Fixed broken tests.
[bgpcep.git] / bgp / topology-provider / src / main / java / org / opendaylight / bgpcep / topology / provider / bgp / impl / Ipv6ReachabilityTopologyBuilder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.bgpcep.topology.provider.bgp.impl;
9
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpPrefix;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.tables.routes.ipv6.routes.Ipv6Route;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.route.Attributes;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15
16 final class Ipv6ReachabilityTopologyBuilder extends AbstractReachabilityTopologyBuilder<Ipv6Route> {
17         Ipv6ReachabilityTopologyBuilder(final InstanceIdentifier<Topology> topology) {
18                 super(topology, Ipv6Route.class);
19         }
20
21         @Override
22         protected Attributes getAttributes(final Ipv6Route value) {
23                 return value.getAttributes();
24         }
25
26         @Override
27         protected IpPrefix getPrefix(final Ipv6Route value) {
28                 return new IpPrefix(value.getKey().getPrefix());
29         }
30 }