2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.protocol.bgp.rib.impl;
10 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
13 * Import policy invoked on routes which we get from outside of our home AS.
15 final class FromExternalImportPolicy extends AbstractImportPolicy {
17 ContainerNode effectiveAttributes(final ContainerNode attributes) {
19 * Filter out non-transitive attributes, so they do not cross inter-AS
22 * FIXME: to be completely flexible, we need to allow for retaining
23 * the MED attribute. @see https://tools.ietf.org/html/rfc4271#section-5.1.4.
25 return AttributeOperations.getInstance(attributes).transitiveAttributes(attributes);