b50a38eac59f06e98413b4560a4334a0f7c8d212
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / FromReflectorClientImportPolicy.java
1 /*
2  * Copyright (c) 2015 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.rib.impl;
9
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.ClusterIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
13
14 /**
15  * Invoked on routes which we get from our reflector peers. This is a special-case of
16  * FromInternalImportPolicy.
17  */
18 final class FromReflectorClientImportPolicy extends FromInternalImportPolicy {
19     FromReflectorClientImportPolicy(final Ipv4Address bgpIdentifier, final ClusterIdentifier clusterIdentifier) {
20         super(bgpIdentifier, clusterIdentifier);
21     }
22
23     @Override
24     ContainerNode effectiveAttributes(final ContainerNode attributes) {
25         // TODO: (defensiveness) verify ORIGINATOR_ID (should have been set)
26
27         return super.effectiveAttributes(attributes);
28     }
29 }