package org.opendaylight.protocol.bgp.rib.spi;
-import java.util.Collection;
-import java.util.Map;
+import java.util.function.BiConsumer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.PeerId;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.PeerRole;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
}
public YangInstanceIdentifier getYii() {
- return yii;
+ return this.yii;
}
public PeerRole getRole() {
- return role;
+ return this.role;
}
}
/**
* Transform outgoing attributes according to policy per Peer
*
- * @param sourcePeerId root Peer
+ * @param role root Peer role
* @param attributes attributes container
* @return return attributes container after apply policy
*/
- ContainerNode effectiveAttributes(PeerId sourcePeerId, ContainerNode attributes);
+ ContainerNode effectiveAttributes(PeerRole role, ContainerNode attributes);
/**
- * @return map of peer
+ *
+ * @param routePeerId PeerId
+ * @return true if peer is present on this export group
+ */
+ boolean containsPeer(PeerId routePeerId);
+
+ /**
+ * Applies the given action for each entry in this PeerExportGroup on synchronized mode
+ *
+ * @param action action to be applied
*/
- Collection<Map.Entry<PeerId, PeerExporTuple>> getPeers();
+ void forEach(BiConsumer<PeerId, YangInstanceIdentifier> action);
}