BUG-4827: Path Selection mode Config Subsystem integration
[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
9 package org.opendaylight.protocol.bgp.mode.impl.base;
10
11 import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
12 import org.opendaylight.protocol.bgp.mode.api.RouteEntry;
13
14 final class BasePathSelection implements PathSelectionMode {
15     @Override
16     public RouteEntry createRouteEntry(final boolean isComplex) {
17         return isComplex ? new BaseComplexRouteEntry() : new BaseSimpleRouteEntry();
18     }
19
20     @Override
21     public void close() throws Exception {
22         //no-op
23     }
24 }