BUG-6378: Fix PeerExportGroup
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / PeerExportGroup.java
index b9c82878987bce113287e8fc4f4128d2d43924f1..d8c538e0e799e6ce45df5a3000db855d05b6bbf9 100644 (file)
@@ -40,14 +40,16 @@ public interface PeerExportGroup {
     /**
      * 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
      */
     Collection<Map.Entry<PeerId, PeerExporTuple>> getPeers();
+
+    boolean containsPeer(PeerId routePeerId);
 }