Bump upstreams
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / base / BasePathSelection.java
1 /*
2  * Copyright (c) 2016 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.protocol.bgp.mode.impl.base;
9
10 import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
11 import org.opendaylight.protocol.bgp.mode.api.RouteEntry;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Routes;
14 import org.opendaylight.yangtools.yang.binding.ChildOf;
15 import org.opendaylight.yangtools.yang.binding.ChoiceIn;
16 import org.opendaylight.yangtools.yang.binding.DataObject;
17
18 final class BasePathSelection implements PathSelectionMode {
19     BasePathSelection() {
20     }
21
22     @Override
23     public <C extends Routes & DataObject & ChoiceIn<Tables>, S extends ChildOf<? super C>>
24             RouteEntry<C, S> createRouteEntry() {
25         return new BaseRouteEntry<>();
26     }
27
28     @Override
29     public void close() {
30         //no-op
31     }
32 }